我希望为我的应用程序创建一个唯一的ID。如下link所示。
我想使用InstanceID作为唯一标识符。
由于某些配置设置,我的服务器只接受小写字母作为唯一标识符。但实例ID包含大小写字符。我考虑将每个实例ID字符转换为其对应的ASCII值,并将其作为我的唯一标识符发送。这样做是否正确?
此外,我正在阅读有关FirebaseInstaceId的资料。
我想使用InstanceID作为唯一标识符。
String uniqueID = InstanceID.getInstance(context).getId();
由于某些配置设置,我的服务器只接受小写字母作为唯一标识符。但实例ID包含大小写字符。我考虑将每个实例ID字符转换为其对应的ASCII值,并将其作为我的唯一标识符发送。这样做是否正确?
此外,我正在阅读有关FirebaseInstaceId的资料。
https://firebase.google.com/docs/reference/android/com/google/firebase/iid/FirebaseInstanceId
在使用FirebaseInstanceId和Instance Id之间,是否建议使用FirebaseInstanceId?我没有在文档中找到相关的说明。请给予建议。
谢谢。