Skip to content

[Firestore] Add Firestore to desktop C++ module enable list - #1577

Merged
AustinBenoit merged 1 commit into
mainfrom
fix/firestore-module-user-agent
Nov 25, 2026
Merged

AustinBenoit merged 1 commit into
mainfrom
fix/firestore-module-user-agent

Conversation

@AustinBenoit

Copy link
Copy Markdown
Contributor

Description

On desktop, InitializeAppUtilCallbacks() disables all C++ AppCallback modules before creating an App and re-enables only the modules whose C# class is present. Firestore was not in EnableModuleParams[].

The companion C++ SDK change (firebase/firebase-cpp-sdk#1988) registers each desktop module's user-agent key at App::Create() time while skipping disabled modules. Listing Firebase.Firestore.FirebaseFirestore, Firebase.Firestore ("firestore") lets Firestore register fire-fst at app creation when Firestore is included in a Unity project.

Safe to merge independently: until built against a C++ SDK that defines a "firestore" module, SetEnabledAppCallbackByName("firestore", ...) is a no-op.


Testing

  • Verified the entry matches the existing EnableModuleParams pattern in app/src/swig/app.i.
  • Not yet built locally against the companion C++ SDK branch; relying on CI for cross-platform builds.

Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

On desktop the Unity SDK disables every C++ module before it creates an App and re-enables the ones whose C# class is present. Firestore was not in that list.

The C++ SDK is gaining per-module user agent registration on desktop that skips disabled modules. Listing Firestore lets it register fire-fst when an App is created, so that heartbeats sent by Auth also report Firestore.

This has no effect until the SDK builds against a C++ SDK that registers a "firestore" module.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates app/src/swig/app.i to include FirebaseFirestore in the EnableModuleParams list, allowing the C++ SDK to register its user agent on desktop when Firestore is in use. There are no review comments, and I have no feedback to provide.

@AustinBenoit
AustinBenoit marked this pull request as ready for review November 24, 2026 18:44
@AustinBenoit
AustinBenoit merged commit 3090c4c into main Nov 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants