Firebase Messaging: A simple way to post real-time shared messages using Firebase.
I wanted to create a real-time message board where people could post messages to each other and the app would update with the most recent message that was posted. I wanted the most recent message to be viewable whenever you open the app. I did this using the FirebaseDB component. With this component, you can store data in Google’s cloud and access it from any device. As soon as a message is submitted in this app, the message is stored in the cloud using Firebase. Since Google’s Firebase database always has the most recent message stored, you can always view the most recent message when you open the app, whether it was submitted when you had the app open or closed.
I used the
when Firebase.DataChanged
block to notify the app anytime a new message was submitted from any user of the app.
please does firebase auto fill in the token text box when you input your firebase url. this is because after adding my firebase url i got auto fill of the token section.is it the right way/ new
This don’t seem to be able to replicate that. Moreover, it should NOT happen because your token is a secret, and if someone can derive the token just by having your URL(which is public), then that’s a major security breach.
I would like to see if this is a bug or a mere coincidence.
When you changed the URL, did the token change to the correct one or was it a string of random letters?
Helios
Did it match with the actual token of your project or was it this:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NzMxNTQyODEyLCJ2IjowLCJkIjp7InVpZCI6IjUyMDZiZGJkLTQ3ZjctNGFmNC1hYjY3LTdhMGFiYzY3NDVhNiIsInByb2plY3QiOiIiLCJkZXZlbG9wZXIiOiJ2aXNod2FzYWRpZ2FAZ21haWw6Y29tIn0sImlhdCI6MTQ4OTU0NjAxMn0.JsPI2_Zp2y1XprS61fLHtgBHp0xAMDzzYLqFVpfsjZM
Just came along this thread. It’s a very handy event to use. Is there a best practice how to setup an own firebaseDB and what is actually the difference to the Default one?
If you’re an experienced developer, or looking to learn some new programming skills then @Barreeeiroo’s open source app “Chatable” has all of these features: