My question is pretty simple, I don´t know how to simulate multiple updates inside Firebase Simulator. Since I don´t know how to even start I can´t provide any code. Any guidance will be very helpful.
There is currently no way to execute multi-location updates in the Firebase Database security rules simulator.
It would be great to have that functionality, so can you file a feature request for it here?
Related
Hello I am trying to firebase in my app and I keep running into problems. I've tried the suggestions in this screen shot, but I think perhaps I am not understanding properly.
Its saying cannot find correct Provider, I am guessing it can't find it in the tree. But it looks to me as if it is there
Here is my main where I call provider
So it turns out this is what works. Now i just need to figure out how to present the data.
I am a beginner in android and was working on a small project where multiple user sign up and perform different action like posting, liking, commenting. All data being stored on fire-base database and storage. I want to build an 'Events module' in the app, that helps each user set their own event, descriptions, time and days to give them reminders. I am unable to work as I don't know where to start. What should I use. I tried searching alarm manager but I really am not getting it so much. Many people have worked using SQLlite and alarm manager but I don't want to use sqlLite. Help me what should I start.
I found the answer to this a day after. The reason why we need to choose sqlite and not firebase is because alarms are locally stored on our mobile devices. Sqlite helps in such process whereas firebase works as cloud which is usually not recommended and used for alarms or calendars!!! Cheers
I'm facing an issue where when I sign out a user (using FirebaseAuth.signOut() method) and sign in with another user, information of the previous user are loaded instead of the new one.
I believe this is caused by this information still being accessible in firebase's cache.
Is there a way to force firebase to clear its local cache?
Cheers!
For Android, there is FirebaseFirestore.clearPersistence().
For JavaScript/web, there is Firebase.clearPersistence().
For iOS, there is Firebase.clearPersistence().
Flutter does not seem to have this API yet.
Bear in mind that the clearPersistence API is not meant for the specific case you're talking about. If you read the API docs carefully, you can see they're meant for testing.
You might want to do a little more debugging to figure out what exactly it is that's not working the way you expect. Since you're not showing any code, it's hard to tell if you might be doing something wrong.
You can use the async call FirebaseFirestore.instance.clearPersistence(); for flutter projects.
Check this answer.
If clearPersistence() doesn't work, Programmatically restart your app
you can restart your app like this: https://stackoverflow.com/a/50116077/10041654
in addition, while restarting init your firebase: https://github.com/The-ring-io/flutter_phoenix/issues/27#issue-1490150037
How to send notification to user on data changes in database using firebase ?
I am newbie and searched everywhere no such help.. please help me.
I got to know that it's possible using firebase cloud function but I did not got any example code to understand it. So please help by giving any example code.
Have a look at the first use-case mentioned in the Firebase documentation and the sample code for that use-case. They quite literally describe what you're asking for.
Note that this code is non-trivial, since the entire use-case is quite involved. You will have to make sure you understand all parts well, before you try to make any changes to the sample code. To get this understanding, you might be better served by following the more basic documentation for the Realtime Database and Cloud Messaging, and the codelab for iOS, Android, and/or Web.
I'd like a script on my Windows pc to be called when something is updated in my firebase database. I'm doing the guides for firebase cloud functions (https://firebase.google.com/docs/functions/get-started). These guides show me how to make scripts that interact with the database. I'm looking for something that would interact with the command line of my computer. Just wondering if it's possible and someone to point me in the right direction.
Edit answering comments:
I'm doing this because I have a database on my computer i'd like my ios app to be able to access (I'm really unsure if this is the best way to go about any of this). I want the app to update firebase and then when that update occurs my computer to know this and run a script that grabs info from the database and uploads that to firebase. I'm really a novice at all of this so any better suggestions would be helpful.