如何存储 firebase 实例 ID 令牌?
How to store firebase instance id token?
firebase 令牌是否用于发送到特定设备?
如何在 MySQL 中存储 firebase 令牌?
来自google网站,它没有提到令牌的长度。
好像很长。
实例 ID 令牌标识特定设备上的特定应用程序。来自 Firebase documentation:
Registration token - An ID generated by the FCM SDK for each client app instance.
实例 ID 令牌确实只会在极少数情况下过期。同样来自 documentation:
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.
令牌是一个比较长的字符串。由于您不太可能经常搜索它,因此我将存储在您数据库的文本字段中。
firebase 令牌是否用于发送到特定设备?
如何在 MySQL 中存储 firebase 令牌?
来自google网站,它没有提到令牌的长度。
好像很长。
实例 ID 令牌标识特定设备上的特定应用程序。来自 Firebase documentation:
Registration token - An ID generated by the FCM SDK for each client app instance.
实例 ID 令牌确实只会在极少数情况下过期。同样来自 documentation:
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.
令牌是一个比较长的字符串。由于您不太可能经常搜索它,因此我将存储在您数据库的文本字段中。