M mtechteam Member Licensed User Longtime User Mar 11, 2020 #1 Firebase messaging: I have subscribed to more than one topic in my b4i application. When this method is called because of a notification, I cannot see anywhere in the Message map what the topic was. Is there a way to determine this so that I can take different action based on which topic triggered it?
Firebase messaging: I have subscribed to more than one topic in my b4i application. When this method is called because of a notification, I cannot see anywhere in the Message map what the topic was. Is there a way to determine this so that I can take different action based on which topic triggered it?
Brandsum Well-Known Member Licensed User Mar 11, 2020 #2 Send the topic name as data in the notification payload. The topic name will be inside the message map. Upvote 0
Send the topic name as data in the notification payload. The topic name will be inside the message map.
M mtechteam Member Licensed User Longtime User Mar 11, 2020 #3 It took me a few tries because there are 3 different Map objects in the sample code that I implemented into my code, but I have it working. Thank you for your quick response. Upvote 0
It took me a few tries because there are 3 different Map objects in the sample code that I implemented into my code, but I have it working. Thank you for your quick response.