Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix passing GCMSenderId to FirebaseOptions on Android/iOS #447

Merged
merged 4 commits into from
Apr 1, 2024

Conversation

Daeda88
Copy link
Contributor

@Daeda88 Daeda88 commented Dec 19, 2023

The FirebaseOptions generated on the multiplatform level is missing the GCMSenderId on Android and iOS (on JS it is not used)

This pr fixes that

@@ -29,11 +29,11 @@ actual fun Firebase.initialize(context: Any?, options: FirebaseOptions, name: St
actual fun Firebase.initialize(context: Any?, options: FirebaseOptions) =
FirebaseApp(com.google.firebase.FirebaseApp.initializeApp(context as Context, options.toAndroid()))

actual class FirebaseApp internal constructor(val android: com.google.firebase.FirebaseApp) {
actual data class FirebaseApp internal constructor(val android: com.google.firebase.FirebaseApp) {
Copy link
Member

Choose a reason for hiding this comment

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

Why a data class now?

Copy link
Contributor Author

@Daeda88 Daeda88 Jan 13, 2024

Choose a reason for hiding this comment

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

So you can do proper equality checks. Useful for testing

I other words: 'Firebase.app("name") == Firebase.app("name")' should return true, as it would on the regular sdks

@nbransby nbransby merged commit 7a49f42 into GitLiveApp:master Apr 1, 2024
1 of 3 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