Repository navigation
[Firestore] Add Firestore to desktop C++ module enable list - #1577
Merged
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
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
marked this pull request as ready for review
November 24, 2026 18:44
a-maurice
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
On desktop,
InitializeAppUtilCallbacks()disables all C++AppCallbackmodules before creating anAppand re-enables only the modules whose C# class is present. Firestore was not inEnableModuleParams[].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. ListingFirebase.Firestore.FirebaseFirestore, Firebase.Firestore("firestore") lets Firestore registerfire-fstat 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
EnableModuleParamspattern inapp/src/swig/app.i.Type of Change
Place an
xthe applicable box: