How to create an internet simple database to download/upload strings from/to all devices which has the app installed

Hi!!
I'm developing a personal purpose app with Xamarin Forms and I need to send to a database the Firebase Auth token which is generated in each device when the app is installed. I need this to download that token on the app in my phone and use it to send a push notification to the other phone.
Now, I'm able to send that notification, knowing the token and also I know how to get it in the owner device, so the only I need to acheive is getting this token on the other device to send through there the push notification but I dont know how to get it.
I've watching tutorials about creating an internet database and then uploading and downloading from there (as James Montemagno said in this tutorial https://www.youtube.com/watch?v=a37qBMt0V9w&t) but I don't know how to create the database to use it.
Anyone can help?? Thank you :D
I dont have a web server so I decided to use Cloud Firestore from firebase. The new problem is that when I try to set the GOOGLE_APPLICATION_CREDENTIALS environment variable, if I print the path it is correct. But when I try to create the instance of the Database and exception unhandled appears with the next message:
Error readind credential file from location X. Could not find a part of the path X. Please check the value of the environtment variable. But the value is correct and is set to the path of the private key of google project.
I set it on the app.xaml.cs on my base xamarin form project with Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", "C:/Users/myuser/Downloads/projectname-319700-ae570902a804.json");
If I add it on the project properties debug, it does not recognize it
Sorry cloud firestore not, realtime database
You can post a new thread for your issue and you could mention me to let me know the new thread link. We can work together to figure it out.
Sign in to comment