谷歌云消息传递唯一键 [英] Google Cloud Messaging Unique Key

查看:61
本文介绍了谷歌云消息传递唯一键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过谷歌云通讯文档GCM关键是每台设备,每个应用独特英寸如果我卸载并重新安装应用程序,关键是始终不变的,也就是说,关键是基于一些设备和应用程序标识符计算或钥匙会改变吗?

I've read in Google Cloud Messaging documentation that GCM key is unique per device and per application. If I uninstall and reinstall the application the key is always the same, ie, the key is calculated based on some device and application identifiers or the key will change?

推荐答案

没有,卸载后密钥(称为注册ID),可能会改变和重新安装应用程序。

No, the key (called Registration ID) may change after you uninstall and re-install the app.

以下情形将导致ID改变:

The following scenario will cause the ID to change :


  1. 卸载应用程序

  2. 发送GCM消息到设备数次,直至GCM服务器意识到这个应用程序是从设备卸载

  3. 重新安装应用程序

这篇关于谷歌云消息传递唯一键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆