简体   繁体   English

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

[英]Device Registration Id for Android and iOS for mobile web application using pyfcm

I am new to push notification. 我是新来的推送通知。 I am trying to use pyfcm for sending push notifications. 我正在尝试使用pyfcm发送推送通知。 A few questions: 几个问题:

  1. Registration_ids: I am not sure how to get the "registration_ids" for iOS and Android through pyfcm. Registration_ids:我不确定如何通过pyfcm为iOS和Android获取“ registration_ids”。
  2. Also is it same as the instance id token? 还与实例ID令牌相同吗?
  3. Is it always same for a device or is it specific between an app and device? 设备始终是相同的,还是应用程序和设备之间特定的?

1. Registration_ids: I am not sure how to get the "registration_ids" for iOS and Android through pyfcm. 1. Registration_ids:我不确定如何通过pyfcm为iOS和Android获取“ registration_ids”。

Registration ID/Tokens can only be generated on your client app side (Android/iOS). 注册ID /令牌只能在客户端应用程序端(Android / iOS)上生成。

See how to setup an Android Client here , iOS Client here , and JavaScript Client here . 了解如何设置一个Android客户端在这里 ,iOS用户端在这里 ,和JavaScript客户端在这里

2. Also, is it same as the instance id token? 2.另外,它是否与实例ID令牌相同?

AFAIK, this is also a term sometimes used for the Registration Token. AFAIK,这也是注册令牌有时使用的术语。 Since it is from the InstanceID the Registration Token comes from. 由于它来自InstanceID,因此注册令牌来自。

3. Is it always same for a device or is it specific between an app and device? 3.设备是否始终相同,还是在应用程序和设备之间特定?

Each token is unique for each app instance (ie device). 每个令牌对于每个应用程序实例(即设备)都是唯一的。 Referring from the Registration token docs I linked in #1: 从我在#1中链接的注册令牌文档引用:

An ID generated by the FCM SDK for each client app instance. 由FCM SDK为每个客户端应用程序实例生成的ID。 Required for single device and device group messaging. 单个设备和设备组消息传递是必需的。 Note that registration tokens must be kept secret. 请注意,注册令牌必须保密。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用pyFCM的Python中的Firebase云消息传递(FCM) - 客户端注册 - Firebase Cloud Messaging (FCM) in Python with pyFCM - Client registration 使用python在Android设备上执行移动搜索 - Performing mobile search on an android device using python Android 设备的图像无法显示,但 buildozer 目录中的图像可以显示在移动应用程序上 - Image from Android device cannot be displayed but Image inside the directory of buildozer can be displayed on the mobile application ModuleNotFoundError:使用 pyfcm 时没有名为“requests.adapters”的模块 - ModuleNotFoundError: No module named 'requests.adapters' when using pyfcm 在移动应用程序中嵌入 web 应用程序? - Embedding a web application in a mobile app? 适用于Kivy应用程序的虚拟android设备 - Virtual android device for Kivy application 如何使用python获取android中移动设备的当前纬度和经度? - How do I get the current Latitude and Longitude of the mobile device in android using python? Web应用程序+移动应用程序Python / Django体系结构 - Web application + Mobile App Python/Django architecture 有没有办法将 python flask 中的 web 应用程序转换为移动设备? - Is there way to convert web application in python flask to mobile? 在 android 设备中使用 sklearn - Using sklearn in android device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM