-2

I am using FCM in my app. Currently, when a user logs-out, I remove the corresponding registration token in my App Server to make the user not active. I was wondering if I should do the same thing if the user uninstalls the app?

Also, is there a way to check if the FCM registration token is valid or not?

AL.
  • 36,815
  • 10
  • 142
  • 281
R kanojia
  • 105
  • 4
  • 17
  • Hi. I've edited out your post, trying to understand it as much as I can, and aligned it with the usual terms when using FCM (e.g FCM user id to Registration token). Please feel free to undo my changes if you think it's way different. – AL. Mar 03 '17 at 06:28
  • Possible duplicate of http://stackoverflow.com/questions/40706603/how-can-i-know-that-a-firebase-cloud-messaging-token-is-out-of-use/40734449#40734449 – AL. Mar 03 '17 at 06:38

1 Answers1

0

AFAIK, when the app is uninstalled, the registration token is invalidated and will be discarded by FCM, and in turn it is the developer's responsibility to remove the corresponding token from their App Servers.

For the checking the validity of a registration token on the server-side, see my answer here.

Community
  • 1
  • 1
AL.
  • 36,815
  • 10
  • 142
  • 281