Skip to content

AppOptions.LoadFromJsonConfig() not working correctly on iOS #376

Open
@DaveMariner

Description

@DaveMariner

Overview:
I guess the function call might technically be working. However, whilst the Android google-services.json works fine for Android, it throws the following error on iOS: "ERROR: Unable to configure Firebase app (Configuration fails. It may be caused by an invalid GOOGLE_APP_ID in GoogleService-Info.plist or set in the customized options.)"

Additionally, there's no way of downloading a valid google-services.json for iOS, plus the GoogleService-info.plist uses different names and structure to the google-services.json.

Motivation:
We need different firebase projects for development and live production environments so we can easily develop and test (f.ex) Remote Config structural changes without fear of breaking the game for our entire player base. In the longer term, we can envisage a use case for multiple firebase projects within the same game, so build-time substitution isn't a long-term solution.

Suggest a fix:
In descending order, my for a fix preference would be:

  • Expose "google-services.json" download for iOS through the console.
  • Implement AppOptions.LoadFromPlistConfig()
  • Document the mapping between plist & json

[Note that we're currently using Firebase Unity v6.6.0 - if this is fixed in a later version, then apologies in advance, although I checked the release notes and there was nothing listed there addressing this issue]

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