Android Question B4A FIREBASE PUSH NOTIFICATION TUTORIAL 2023

mike1967

Active Member
Licensed User
Longtime User
Hello, itry and modify the samples of b4a firebase push notification with b4jsending tool. It work fine.
Now i ask for this question:
if i logging into app with google credentials and read the username of the mail and set this as topic of push notification subscription and sending messages the notification is send to only this specified users ? i try modify manually the code and work fine. But i want to know if this method is correct or maybe create complicance in the application. Thanks in advanced
 

mike1967

Active Member
Licensed User
Longtime User
If you want to send message to a specific user then you have two options:
1. Subscribe the user to a specific topic.
2. Get the user's token id and send it to your server. Later use that token id instead of the topic (the format is a bit different but you will find it).
Is possible to subscribe to one or plus topic ?
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Upvote 0
Top