使用pyfcm的Android和iOS移动web应用程序的设备注册Id

2024-06-02 07:37:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我是新来推送通知的。我正在尝试使用pyfcm发送推送通知。几个问题:

  1. 注册账号:我不知道如何通过pyfcm获得iOS和Android的“注册账号”。在
  2. 它是否与实例id令牌相同?在
  3. 对于一个设备来说总是一样的,还是在应用程序和设备之间是特定的?在

Tags: 实例id应用程序androidiospyfcm账号
1条回答
网友
1楼 · 发布于 2024-06-02 07:37:27

1. Registration_ids: I am not sure how to get the "registration_ids" for iOS and Android through pyfcm.

Registration ID/Tokens只能在客户端应用程序(Android/iOS)上生成。在

了解如何设置Android客户端here,iOS客户端here,以及JavaScript客户端here。在

2. Also, is it same as the instance id token?

阿菲克,这也是一个术语有时用于注册令牌。因为它来自InstanceID,所以注册令牌来自。在

3. Is it always same for a device or is it specific between an app and device?

每个令牌对于每个应用实例(即设备)都是唯一的。参考我在#1中链接的注册令牌文档:

An ID generated by the FCM SDK for each client app instance. Required for single device and device group messaging. Note that registration tokens must be kept secret.

相关问题 更多 >