jayel Active Member Licensed User Longtime User Jul 29, 2016 #1 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
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 Jul 29, 2016 #2 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
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 ?
jayel Active Member Licensed User Longtime User Jul 29, 2016 #3 UnsubscribeFromTopic was the solution Upvote 0