Skip to content

[📚] When adding GoogleService-Info.plist please follow this #7917

@ghost

Description

When using Crashlytics, the documentation tell us that to allow native reporting we must follow the old method to init firebase.

Capture d’écran 2022-01-21 à 11 21 24

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions