简体   繁体   English

获取推送通知的Android移动令牌

[英]Get android mobile token for Push notifications

I have a android application which sends to my PHP script the following information: mobile_id, os_version, app_version. 我有一个Android应用程序,它向我的PHP脚本发送以下信息:mobile_id,os_version,app_version。

Is it possible to retrieve the android device token from those parameters? 是否可以从这些参数中检索Android设备令牌? I've heard you should connect to google somehow to get it.. 我听说你应该以某种方式连接谷歌得到它..

But, I couldn't find any information about.. 但是,我找不到任何关于..的信息。

I'm newbie to android applications. 我是Android应用程序的新手。 any help will be appreciated:) 任何帮助将不胜感激:)

You need to implement GCM to do so. 您需要实施GCM才能这样做。

Please follow this link for details explanations. 请点击此链接了解详细说明。

Google Cloud Messaging Google Cloud Messaging

Thanks. 谢谢。

GCM is being deprecated. GCM已被弃用。 Use FCM instead: 使用FCM代替:

https://firebase.google.com/docs/cloud-messaging/ https://firebase.google.com/docs/cloud-messaging/

Same platform as GCM but extended with more features. 与GCM相同的平台,但扩展了更多功能。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM