How are generated push token and how unique are they?

In expo SDK36, I target ios and android.

I am trying in development the push notification, on Android device, my device have : ExponentPushToken[XYZ] and my iOS device have ExponentPushToken[ABC]

  • Are those generated token unique?
  • Are they generated client side ?
  • Can I safely add them to my database to identify my devices?
  • Will all the release channel (staging/preprod/prod) use the same token for each devices?

Thanks a lot for clarifying

1 Like
  • Are those generated token unique? => yes
  • Are they generated client side ? => yes
  • Can I safely add them to my database to identify my devices? => yes
  • Will all the release channel (staging/preprod/prod) use the same token for each devices? => yes

@kopax does that mean that I can use the push token as a “device id”?

Yes you can. But if the user uninstall and reinstall, the id will change

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.