Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not configure Firebase InstanceID

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

like image 717
Mohanraj Avatar asked Jul 28 '16 13:07

Mohanraj


3 Answers

There are two things to check (and hopefully, one will fix it for you):

  1. Make sure your BundleIdentifier is exactly the same in your Firebase project as it is in your Xcode, i.e. com.[yourcompany].[yourappname]
  2. Make sure you got the latest GoogleService-Info.plist file. Go to Firebase Console -> Settings -> Your Application - there will be a blue button to the right that lets you download new configuration file

That solved it for me.

like image 68
mike.tihonchik Avatar answered Oct 06 '22 08:10

mike.tihonchik


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.

like image 9
John DeLong Avatar answered Oct 06 '22 10:10

John DeLong


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.

like image 3
Donal Avatar answered Oct 06 '22 08:10

Donal