Android - 根据什么Firebase刷新token
Android - According to what Firebase refreshing token
也许这并不重要,但我不明白当 onTokenRefresh()
函数 运行.. 谢谢
编辑:我在 Android 项目中使用 FCM 通知。我的应用程序使用 "registration token id" 向特定用户发送消息(我正在存储它)。我担心 token id 什么时候会改变或者它是字面值吗?
Because the token could be rotated after initial startup, you are strongly recommended to retrieve the latest updated registration token.
The registration token may change when:
- The app deletes Instance ID
- The app is restored on a new device
- The user uninstalls/reinstall the app
- The user clears app data.
也许这并不重要,但我不明白当 onTokenRefresh()
函数 运行.. 谢谢
编辑:我在 Android 项目中使用 FCM 通知。我的应用程序使用 "registration token id" 向特定用户发送消息(我正在存储它)。我担心 token id 什么时候会改变或者它是字面值吗?
Because the token could be rotated after initial startup, you are strongly recommended to retrieve the latest updated registration token.
The registration token may change when:
- The app deletes Instance ID
- The app is restored on a new device
- The user uninstalls/reinstall the app
- The user clears app data.