I'm trying push notification with firebase and b4a Ver. 6.0
with filrebase console i can send a push to all devices
or send to single device with token/gcm_id.
can i use a SubscribeToTopic different for each user/devices?
I'm trying to figure out if I can avoid to store gcm_ic/token into my server
and use a unique attribute for my user,
for example the email and send push to all devices that uses.
With one account (mail address) you can log in to x devices so FCM doesn't know which one you mean. This is why the token is needed. It's unique for every device. If you need to simplify it by "send a message to Mike" you need to build a reference in a table like you've mentioned.
I have one app where the users need to give a unique nickname to solve the issue with "one user - one mail adrress - 3 devices".
With one account (mail address) you can log in to x devices so FCM doesn't know which one you mean. This is why the token is needed. It's unique for every device. If you need to simplify it by "send a message to Mike" you need to build a reference in a table like you've mentioned.
I have one app where the users need to give a unique nickname to solve the issue with "one user - one mail adrress - 3 devices".