-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
When using Crashlytics, the documentation tell us that to allow native reporting we must follow the old method to init firebase.
So, we must add for instance GoogleService-Info.plist inside IOS folder. The documentation didn't ask us to pay attention about the Target Membership of the file but if this option is empty Firebase Messaging will not work and app will have APNS token issue (null).
Note for dev working on multi flavors :
You maybe have a folder with several sub folder and several GoogleService-Info.plist and on your project root an other GoogleService-Info.plist.
Runner/
GoogleService-Info.plist
Firebase/
Flavor1/
GoogleService-Info.plist
Flavor2/
GoogleService-Info.plist
Flavor3/
GoogleService-Info.plist
At build time you will copy the correct GoogleService-Info.plist from flavor folder and replace the root one.
To avoid this issue, check all Target Membership of the root GoogleService-Info.plist file. Let empty others.
