Android Question [SOLVED] Firebase notification subscription

jayel

Active Member
Licensed User
Longtime User
Hello,

Erel's example code to send and receive notifications with Firebase.
When I change :
B4X:
 fm.SubscribeToTopic("general")
to
B4X:
 fm.SubscribeToTopic("john")

And I send with the B4J to topic general. I still receive the notification on my phone...

I thought this was like MQTT, You subscribe to a channel and recieve when something is posted to that channel?

Any ideas?

John
 

tufanv

Expert
Licensed User
Longtime User
Maybe if you run the app without changing first , you subscribed to general and later when you change to john you also subscribed tojohn. So sending to both channel will make you receive the msg ?
 
Upvote 0
Top