Mashiane Expert Licensed User Longtime User Jan 22, 2021 #1 Ola I need some advise on firebase messaging? Q1. How to enable lines to have a new line? Q2. What is the best approach to subscribe and un-subscribe from topic during runtime, like I want to be able to turn these on / off? The topic names change depending on whats on the db? Thanks
Ola I need some advise on firebase messaging? Q1. How to enable lines to have a new line? Q2. What is the best approach to subscribe and un-subscribe from topic during runtime, like I want to be able to turn these on / off? The topic names change depending on whats on the db? Thanks
Erel B4X founder Staff member Licensed User Longtime User Jan 24, 2021 #2 A1. B4X: Send("general", "title", $"First line Second line"$) A2. Not sure what you are asking. You should call fm.SubscribeToTopic or fm.UnsubscribeFromTopic. Upvote 0
A1. B4X: Send("general", "title", $"First line Second line"$) A2. Not sure what you are asking. You should call fm.SubscribeToTopic or fm.UnsubscribeFromTopic.
Mashiane Expert Licensed User Longtime User Jan 24, 2021 #3 Thank you, On Q2, I only thought the B4X: CallSubDelayed2(FirebaseMessaging, "SubscribeToTopic", "topicx") was to be done only on the starter service, I've called it from B4XMainPage, its working. For Q1, I'll try your code, as I need to show a Notification with new lines, at least 4 lines. Upvote 0
Thank you, On Q2, I only thought the B4X: CallSubDelayed2(FirebaseMessaging, "SubscribeToTopic", "topicx") was to be done only on the starter service, I've called it from B4XMainPage, its working. For Q1, I'll try your code, as I need to show a Notification with new lines, at least 4 lines.