- Home /
Linking Firebase with Unity doesn't work?
On Window>Package Manager>Advanced Project Settings i entered a Scoped Registry with the URL https://unityregistry-pa.googleapis.com and the Scope com.google. In the YT tutorial that i was following after Applied, in Package manager Google LLC would appear but it doesn't for me. Help?
I don't understand what instructions the tutorial gave you. Please give more information as to what tutorial you're following and what you're trying to accomplish.
By 'linking firebase to Unity', do you mean that you want to access your Firebase database from Unity? If so, all you need is the 'google-services' json file provided from the database, and you'll need to install the Firebase Unity packages from their website.
Then, in your C# script, you should have the Firebase namespace (as well as external namespaces depending on what other packages you have, such as Firebase.Database). From the json file, get the text, and then create a new Firebase app from that text using:
AppOptions settings = AppOptions.LoadFromJsonConfig(jsonConfig);
FirebaseApp app = FirebaseApp.Create(settings);
From there, you can get your realtime database reference through:
FirebaseDatabase database = FirebaseDatabase.GetInstance(app);
And so on.. Hope that helped @Radical_boy
Answer by Paul421 · Apr 10, 2021 at 09:05 AM
Did you try a force resolve from the Resolve menu? There must be some kind of Gradle error in that window that could help us give you further help.
Are you using the resolver through Unity Package manager?
I chaged the version from the previos 2020.2.2f1 to 2020.3.3f1 and it now works. I think its a bug for that version
Your answer
Follow this Question
Related Questions
Saving Data (closed) 1 Answer
Update android game with new levels without replacing database 0 Answers
How do I get list of country name, state name and city name for my users in my Game? 1 Answer
Data Management Issue - How to manage retrieved data from mysql? 0 Answers
Reading Gis Attribute Data in Unity? 0 Answers