Firebase Cloud Messaging: Best Practices

I am moving on to Firebase Cloud Messaging, and I have one doubt. My application should show a login screen at startup, and if a user logs on to another account, I must stop sending notifications to an older user.

  • What is the best way to do this?
  • Can I get the application to update the token?
  • Or do I need to update the owner of the token in my database myself?
+4
source share
2 answers

, , . ( , ) , :) , .

- getToken() .

, InstanceID " ", . .

+4

, , .

, , , - , .

, , .

,

0

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


All Articles