hi I'm trying to include firebase in my app and followed the documentation, when I'm trying to do google sign in, Could not configure Firebase InstanceID error occurs .please advice how to overcome this error
There are two things to check (and hopefully, one will fix it for you):
That solved it for me.
Bug Details
As of version 3.13.0
, there appears to be a bug in the Firebase/Core
SDK.
I added a symbolic breakpoint at -[FIRInstanceID(FIRApp) configureInstanceIDWithOptions:app:]
and stepped though the assembly.
It appears that FIRApp.configure()
is ignoring the IS_GCM_ENABLED
flag in the GoogleServices-Info.plist
and tries to configure GCM regardless of the flag's state. In my case, because my project does not use GCM, the app would crash because there was no GCM_SENDER_ID
in the plist.
Workaround
Add a dummy value (i.e. 123456789012
) for GCM_SENDER_ID
within the GoogleService-Info.plist
file. This will allow the application to configure successfully.
You have to add your project which is created on
https://developers.google.com/mobile/add?platform=ios or fire base console into your Firebase dashboard.
Now you can download GoogleService-Info.plist from Firebase and import into your project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With