question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Database URL required in Google Services config files.

See original GitHub issue

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2020.3.2f1
  • Firebase Unity SDK version: 7.1.0
  • Source you installed the SDK: .unitypackage
  • Problematic Firebase Component: All
  • Other Firebase Components in use: Any
  • Additional SDKs you are using: google-signin-unity
  • Platform you are using the Unity editor on: Mac
  • Platform you are targeting: iOS, debugging via Editor
  • Scripting Runtime: Mono

[REQUIRED] Please describe the issue here:

In order to generate google-services-desktop.json, one must have google-services.json. It does not seem to auto-generate from GoogleService-Info.plist.

Steps to reproduce:

  1. Follow instructions here, but only for iOS and not for Android builds: https://firebase.google.com/docs/unity/setup#register-app
  2. Build any demo app for iPhone. Note that it works fine.
  3. Run the same app in the editor by hitting the play button. You will get errors that google-services.json is not found.

Workaround: register an Android app, add google-services.json to Assets.

I am not sure if this is a bug, or the documentation should be updated to reflect this. (Or if I did something else wrong and this workaround shouldn’t have been necessary.)

Relevant Code:

N/A - not a code problem

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
DellaBittacommented, May 4, 2021

I’m going to re-open this issue and mark it as a bug to track it internally. There was a time when all of the Firebase Console Google Service files had a default DATABASE_URL entry, but now they are optional. We need to go through the Firebase C++ and Unity SDKs to remove any assumptions that these strings exist.

0reactions
DellaBittacommented, May 10, 2021

Sorry for the back and forth – when triaging this issue we realized that it’s a Duplicate of #946 . I’m going to close this issue as a duplicate since #946 has more information about how we might fix it. Thanks for the report!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set Firebase Database URL (Unity)
There is a bug in the Firebase games SDKs at the moment, which makes it require that a databaseURL value is specified in...
Read more >
Firebase google-services.json has no Database URL?
I'm trying to hook up something - a Realtime database (or even a Firebase) to Unity, and I can't get the Firebase console...
Read more >
Unable to download google-services.json using ...
I am unable to download the google-services.json config file for the project I ... If I open the URL in a new tab,...
Read more >
Firebase SDK Generation of the Firebase Android resource ...
So I created a Realtime Database, set it to have no read/write privileges (it's one of the default options), regenerated the google-services.
Read more >
Firebase Unity SDK Release Notes
(iOS) A database URL is no longer required to be present in GoogleService-Info.plist when not using Realtime Database. Analytics. Removed SetCurrentScreen() ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found