I want to add at my project a chat but only user to user. Just two users, not subscribe to a topic. As @KMatle advises us:
For example if i want to send a message to a user and token has changes i think user never get this message.
So my question is how can achieve this? Is it better to create a new topic for both users or exists another to way to send a message to a single device. I think tokens changes randomly how can we catch this?Please take it as a example how to communicate between devices via FCM without a server in the middle. Do not publish a similar app to the PlayStore. It is good for SOME devices as each device will send it's identification data to all devices an vice versa. When the number of apps grow, there is a huge communication traffic (1 Mio devices will send a message to 999.999 devices and will retrieve 999.999 messages from all the others)
For example if i want to send a message to a user and token has changes i think user never get this message.