-
Notifications
You must be signed in to change notification settings - Fork 988
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
Call configure only if defaultApp is null #406
Conversation
In some cases the app might be already configured and calling configure twice crash the app with this error `*** Terminating app due to uncaught exception 'com.firebase.core', reason: 'Default app has already been configured.` Closes fechanique#58
I'm getting this error, how can I fix it??? |
You can apply this change to your plugin, or wait until it's merged. |
@jcesarmobile how can I apply this change to my plugin? Thanks! |
@dimitri320 like this |
I've tried this and the error is gone but actually message doesn't come through on ios. |
@sahyun1 for now I'm using @ionic-native/firebase with angular/angularfire2 and it's works perfectly on android and iOs. |
@ChristianOrrala |
@sahyun1 Yes, actually with that combination I'm using Auth, Firestorage, Analytics and FCM. |
Hi @sahyun1 , did you find a way to get the push notifications on iOS after solving this issue ?: As you said, after doing this: PS: I am using |
@saberprashant authentication, messaging and analytics work all fine as @ChristianOrrala suggested. |
In some cases the app might be already configured and calling configure twice crash the app with this error
*** Terminating app due to uncaught exception 'com.firebase.core', reason: 'Default app has already been configured.
Closes #58