[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:
- Follow instructions here, but only for iOS and not for Android builds: https://firebase.google.com/docs/unity/setup#register-app
- Build any demo app for iPhone. Note that it works fine.
- 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:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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!