Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

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
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