How to handle multiple Firebase FCM tokens for each user?

From the official documentation, I understand that the way it works is something like this:

  • User installs application, FCM token
  • Sending a token to the application server
  • The server uses the token to send push notifications to this device.

What if this user installs the application on another device at the same time - should I store several tokens for each user on the application server? If so, then it should be something like checking which ones expired?

+4
source share
2 answers

, - ?

. , .

- , - , ?

, (onTokenRefresh() Android), token , /.

+2

Source: https://habr.com/ru/post/1679040/


All Articles