I am using Unity and Firebase database to build a small Android game. It runs well on my computer, but when I download the game onto my phone, all the Firebase-related functionalities stop working. Have you ever encountered this issue? I’ve searched a lot on the browser but haven’t found a suitable solution. I’m really at my wit’s end.
error cher...Assembly 'Assets/ExternalDependencyManager/Editor/1.2.176/Google.IOSResolver.dll' will not be loaded due to errors: Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector.
I have some question I thoroughly do and listen to the instruction you show. Why when I put it in the saved button on "On click ()" and when I click that in the no function there are three which is like that (in the video) Game Object, Transform and the Object that I create which is "Database Manager" then when I hover my mouse into that there are no "CreateUser ()" so I was wondering if I've done something wrong ?
showing error - DatabaseException: Failed to get FirebaseDatabase instance: Specify DatabaseURL within FirebaseApp or from your GetInstance() call. (unable to get the root reference of database )
Thank you , very simple to follow. is there a way to fetch multiple data at once, for example get the name and gold in the same snapshot? perhaps fetch the root object?I imagine it will make work much less
hello i have an urgent question, whate are you dragging to the database script file in minute 3:24 I don't get it I'm trying to do something similar but I don't know what to drag there.
After I import the 'FirebaseDatabase.unitypackage' file, I got many errors like: `Assembly 'Assets/ExternalDependencyManager/Editor/1.2.179/Google.IOSResolver.dll' will not be loaded due to errors: Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector. Assembly 'Assets/Firebase/Editor/Firebase.Editor.dll' will not be loaded due to errors: Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector.`
i have problem with the "GetName" and "GetGold" methods ( get value button ) whenever i click on the get value button on runtime, it gives me a nullreferenceException. i followed every step but it doesnt display name or gold on the screen, it complains on both methods on the "onCallback.Invoke((int)snapshot.Value);
What if I want to login with my data, but from a different device than the one which I've created my account with? Since that's going to have a different deviceId?
Is it safe? I mean for how I know DB connections like this we usually have a PHP Layer. Is it safe to skip that with using these methods? Is that layer already there but hidden from the user?
You are fetching each property of each user by having to create a function for each property, that isn't very scalable at all, if you had a user with 50 properties, you would have to build 50 functions, and your class would look a horrible spaghettified code Its better to just get the entire User Json (for each User on the Database) and deserialize it to the User Class you created, this way you can have as many properties on the User class has you want and it wont affect anything Other than that, great tutorial!
When importing packages I get error when enter ketstore password 😢 and when I remove all of firebase packages keystore work again , any one know how to fix that?
Olá amigo estou tentado fazer uma integração da unity com firebase para controlar um relé com o esp8266 mas não estou conseguindo fazer a alteração da string, se você puder mim ajudar ficarei muito agradecido. Seria mais ou menos assim: chave: led valor: "0" assim: led: "0" e quando eu clicasse novamente no botão mudaria de estado para led: "1"
Hi, great video and tutorial! Wanted to let you know that for me, the function .SetRawJsonValueAsync(json) didn't work, it wouldn't write anything to the database, but with .SetValueAsync(json) it works like a charm. Given this, is there something I need to look out for in regards to using .SetValueAsync() vs .SetRawJsonValueAsync()? Edit: It seems like the reason SetRawJsonValueAsync() did not work was that I was trying to Serialize properties instead of raw members. Thanks!
@@MisterEyes00 If you haven't figured it out already, the reason might be that he uses the unique device number identifier to store users. So in order to create different users, you'd have to use different devices or assign custom id numbers :)
Hi, a really useful video in whole YT, not many videos for this simple and clear. 👍👍 p.s:- I'm working on an AR app in Unity and want to *dynamically* click and upload images to the firebase. Could u please mention the changes required in the above video tutorial or do we need whole new approach. pps: I tried with vuforia image targets but there is no such thing available
Its a very nice video, thanks for making it, i subscribe instantly, but I dont understand the difference between updating and creating, if i delete the user in the database and just update it has the data the same way, then why is it different?
@@skyz3ra A hacked client can send false data to the database from game easily. If there is no database & serverside scripts probably its best to use a service like Playfab to use cloud scripts.
@@fuxingdi5548 If you modify your variable in your codes by recieving it from database. There is no way to change a variable which is stored and modified in only server.
It's very clear, but what percentage of people are going to have name and gold as options? I think a more suitable tutorial would have been username/email and password. I guess I'll have to figure parts of this out.
@@SoloGameDev Following all the steps to press button to create user I get 5 errors in console, too long to post here. Firebase app creation failed, unable to load firebase app options, object reference not set to an instance of an object. firebase editor dll will not be loaded due to errors...
Compilre errors: Assembly 'Assets/ExternalDependencyManager/Editor/1.2.177/Google.IOSResolver.dll' will not be loaded due to errors: Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform?
Olá amigo estou tentado fazer uma integração da unity com firebase para controlar um relé com o esp8266 mas não estou conseguindo fazer a alteração da string, se você puder mim ajudar ficarei muito agradecido. Seria mais ou menos assim: chave: led valor: "0" assim: led: "0" e quando eu clicasse novamente no botão mudaria de estado para led: "1"
Olá amigo estou tentado fazer uma integração da unity com firebase para controlar um relé com o esp8266 mas não estou conseguindo fazer a alteração da string, se você puder mim ajudar ficarei muito agradecido. Seria mais ou menos assim: chave: led valor: "0" assim: led: "0" e quando eu clicasse novamente no botão mudaria de estado para led: "1"
I am using Unity and Firebase database to build a small Android game. It runs well on my computer, but when I download the game onto my phone, all the Firebase-related functionalities stop working. Have you ever encountered this issue? I’ve searched a lot on the browser but haven’t found a suitable solution. I’m really at my wit’s end.
but dude when i build and run it in my android phone it does not update the the data in database
I have made a quick video on that bro, I hope it helps 🎉
i already fixed the problems :) 😄@@cody_pie
error cher...Assembly 'Assets/ExternalDependencyManager/Editor/1.2.176/Google.IOSResolver.dll' will not be loaded due to errors:
Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
SAME ERROR!!!. Plz any fix? I have to complete project within few days
@@kushal6065its for apple
It's because you haven't installed the iOS module! It shouldn't affect if you're building just for Android!
unity 6
Thank you for the video! It was very informative and easy to follow.
Thank you for this. Simple and to the point!
Got link to example of fetching multiple data? For example for high score, I want fetch the other players that are near the current player's score.
Nice video editing & outro
I have some question I thoroughly do and listen to the instruction you show. Why when I put it in the saved button on "On click ()" and when I click that in the no function there are three which is like that (in the video) Game Object, Transform and the Object that I create which is "Database Manager" then when I hover my mouse into that there are no "CreateUser ()" so I was wondering if I've done something wrong ?
Check if your CreateUser() function is public
showing error - DatabaseException: Failed to get FirebaseDatabase instance: Specify DatabaseURL within FirebaseApp or from your GetInstance() call.
(unable to get the root reference of database )
Did you find a fix
@@beatsbytex nope, i used firebase firestore
@@arifraza1266 thanks for the reply. I ended up giving up and using Unity CloudSave, works great for me.
DBReference = FirebaseDatabase.GetInstance("Your DatabaseURL ").GetReferenceFromUrl("Your DatabaseURL"); it work for me
change google-services.json file. I fixed it with that.
Thank you , very simple to follow. is there a way to fetch multiple data at once, for example get the name and gold in the same snapshot? perhaps fetch the root object?I imagine it will make work much less
Yes it is possible. Just fetch the parent.
hello i have an urgent question, whate are you dragging to the database script file in minute 3:24 I don't get it I'm trying to do something similar but I don't know what to drag there.
i tried dragging my input field but its not accepting it to be dragged onto the script 's empty variable
@@armenapkarian9230 ı have the same problem
same problem@@armenapkarian9230
the input field must be textmesh pro so instead of @@armenapkarian9230 public InputField Gold; write this public TMP_InputField Gold;
After I import the 'FirebaseDatabase.unitypackage' file, I got many errors like:
`Assembly 'Assets/ExternalDependencyManager/Editor/1.2.179/Google.IOSResolver.dll' will not be loaded due to errors: Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector.
Assembly 'Assets/Firebase/Editor/Firebase.Editor.dll' will not be loaded due to errors: Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector.`
i have problem with the "GetName" and "GetGold" methods ( get value button ) whenever i click on the get value button on runtime, it gives me a nullreferenceException. i followed every step but it doesnt display name or gold on the screen, it complains on both methods on the "onCallback.Invoke((int)snapshot.Value);
Thank you so much. Helped me alot.
3:23 in this part does not appears CreateUser() for me
because this guy created CreateUser function as private and then changed to public without saying.
What if I want to login with my data, but from a different device than the one which I've created my account with? Since that's going to have a different deviceId?
When you log in from a different device, you can update your new deviceid with the old one by logging in with your email or username.
Is it safe? I mean for how I know DB connections like this we usually have a PHP Layer. Is it safe to skip that with using these methods? Is that layer already there but hidden from the user?
Huge Huge thanks maaan you saved my life
Can I use this for a web gl build unity project? I can't find the google-services.json file for my existing build.
I keep getting forbade creation app failed when I click save button. Please help
Im havin an issue I cant seem to solve. Theres an error "Firebase app creation failed" Does anyone know whats going on?
me too :*(
have you find a way around it? I still cant lmao@@GameCore-pu2xt
You are fetching each property of each user by having to create a function for each property, that isn't very scalable at all, if you had a user with 50 properties, you would have to build 50 functions, and your class would look a horrible spaghettified code
Its better to just get the entire User Json (for each User on the Database) and deserialize it to the User Class you created, this way you can have as many properties on the User class has you want and it wont affect anything
Other than that, great tutorial!
When importing packages I get error when enter ketstore password 😢 and when I remove all of firebase packages keystore work again , any one know how to fix that?
Brother where did learn the coding can u share it
Well I have questions is when I made a multiplayer with a firebase and I want to publish my game so yeah it's ok about it
Yes it's ok :)
Videonun ilk 4 saniyesinde telaffuzdan oturu "Lan Turk lan bu" diyisim :) ilk defa goruyorum kanalini, basarilar diliyorum.
Sağol kardeşim 😊
nice video.. very simple to follow
Thanks :)
Can I take this sample project? Thanks!
Do you know how to find google firebase for credentials authcode
Funciona bien en el editor, pero al exportar el APK no funciona en android, ya cree una KEYSTORE y puse la huella SHA en FIREBASE.
Would this work on Unity WebGL?
Very nice and informative. Please make use of other firebase package like realtime database, authentication, Firestone etc. Thanks
why you always update you name. if you are new user you have to create ,but your name is exist
Olá amigo
estou tentado fazer uma integração da unity com firebase
para controlar um relé com o esp8266 mas não estou conseguindo
fazer a alteração da string, se você puder mim ajudar ficarei muito
agradecido.
Seria mais ou menos assim:
chave: led
valor: "0"
assim:
led: "0"
e quando eu clicasse novamente no botão mudaria de estado para
led: "1"
Hi, great video and tutorial!
Wanted to let you know that for me, the function .SetRawJsonValueAsync(json) didn't work, it wouldn't write anything to the database, but with .SetValueAsync(json) it works like a charm.
Given this, is there something I need to look out for in regards to using .SetValueAsync() vs .SetRawJsonValueAsync()?
Edit: It seems like the reason SetRawJsonValueAsync() did not work was that I was trying to Serialize properties instead of raw members.
Thanks!
Hey, do you know how to create more Users? Everytime I execute the game, it just updates the current user instead of creating a new user
@@MisterEyes00 If you haven't figured it out already, the reason might be that he uses the unique device number identifier to store users. So in order to create different users, you'd have to use different devices or assign custom id numbers :)
I want database for unity game on website (not app) with firebase
Thanks so much from brazil
Is there one for Webgl?
Works the same with FireStore DataBase?
Hello! The video is great and easy to follow. Can you make a tutorial where we can call multiple data? 🙏🙏
Hi, a really useful video in whole YT, not many videos for this simple and clear. 👍👍
p.s:- I'm working on an AR app in Unity and want to *dynamically* click and upload images to the firebase.
Could u please mention the changes required in the above video tutorial or do we need whole new approach.
pps: I tried with vuforia image targets but there is no such thing available
Its a very nice video, thanks for making it, i subscribe instantly, but I dont understand the difference between updating and creating, if i delete the user in the database and just update it has the data the same way, then why is it different?
Are you Turkish guy ? :)) Your accent is very similar to Turkish :) I have just curious
im turkish and i confirm
Yes I'm :)
@@SoloGameDev Aha dedim video yabancı gibi, bir tıkladım türk :)
its a great thing if you share project or at least script also !
heyyy!! Is this tutorial also valid for multiplayer games in unity?
Yes :)
@@SoloGameDev Can it run on android?
@@thanghoang3028 of course :)
@@SoloGameDev Thank you
it doesnt support to deskop
Is there a way to check user cheating when we are using Firebase ?
they shouldnt be able to cheat if you put your data serverside. unless they are gods and can hack google.
@@skyz3ra A hacked client can send false data to the database from game easily. If there is no database & serverside scripts probably its best to use a service like Playfab to use cloud scripts.
@@fuxingdi5548 If you modify your variable in your codes by recieving it from database. There is no way to change a variable which is stored and modified in only server.
its not showing the total gold
I don't want to run CreateUser() on the first connection and CreateUser() on the second connection. What should I do? Ican't find //
Very simple and cool !
How about safety ?
How can we be sure that a malicious player send false data to the database ?
That's a different matter. Obviously, it would not be right to use it for very important data. Safest to use with simpler data.
@@SoloGameDev Got it,
Would be great to have a more advanced/safe tutorial so we can actually implement those type of solutions in a production =)
It's very clear, but what percentage of people are going to have name and gold as options? I think a more suitable tutorial would have been username/email and password. I guess I'll have to figure parts of this out.
I wish I knew what version of Unity you were using because Firebase doesn't work on the most recent stable version.
Видео класс, но база данных не добавляется в проект. Покажите пожалуйста более детальные настройки UNITY
Ağzına sağlık bro
Great video! Can I get the scripts from anywhere?
too many bugs from just following the steps, please post an updated
There is no bug. What is your problem ?
@@SoloGameDev Following all the steps to press button to create user I get 5 errors in console, too long to post here. Firebase app creation failed, unable to load firebase app options, object reference not set to an instance of an object. firebase editor dll will not be loaded due to errors...
@@SoloGameDev are there prepatory steps like packages or versions that matter? I really want to make this work
too buggy, and no help...
if you can make easyFirebase authorization for android, we would be really grateful my Lord
can you watch your video before you upload them, you cant talk clearly
I have small video on that hope it helps! Any way solo dev creates some awesome stuffs, i think theres some sort of problem in here
put script on chat please
bookmark: 3:36
no one can understand your tutoirals or your accent
Compilre errors:
Assembly 'Assets/ExternalDependencyManager/Editor/1.2.177/Google.IOSResolver.dll' will not be loaded due to errors:
Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform?
same RIP
that wont affect you if you are building android app only, it is because you didnt have iOS build installed
It's because you haven't installed the iOS module! It shouldn't affect if you're building just for Android!
Also i made a video specific for remote config
Olá amigo
estou tentado fazer uma integração da unity com firebase
para controlar um relé com o esp8266 mas não estou conseguindo
fazer a alteração da string, se você puder mim ajudar ficarei muito
agradecido.
Seria mais ou menos assim:
chave: led
valor: "0"
assim:
led: "0"
e quando eu clicasse novamente no botão mudaria de estado para
led: "1"
Olá amigo
estou tentado fazer uma integração da unity com firebase
para controlar um relé com o esp8266 mas não estou conseguindo
fazer a alteração da string, se você puder mim ajudar ficarei muito
agradecido.
Seria mais ou menos assim:
chave: led
valor: "0"
assim:
led: "0"
e quando eu clicasse novamente no botão mudaria de estado para
led: "1"