做旧GCM令牌住,即使卸载后? [英] Do old GCM tokens live on even after an uninstall?

查看:129
本文介绍了做旧GCM令牌住,即使卸载后?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们一直都在一个GCM实施和已经注意到,分配给一个应用程序安装的设备地址,可即使该应用程序已被卸载过生活。

We've been working on a GCM implementation and have noticed that a device address assigned to a an app installation, can live on even if the app is uninstalled.

所以我们安装一个应用程序,获得令牌A,设备预订特定警报类型1,消息令牌一大获成功。然后,我们卸载该应用程序。

So we install an app, get token A, device subscribes to a particular alert type 1, message token A with great success. Then we uninstall the app.

没有我们重新安装,得到令牌B和设备预订特定警报类型2,我们的消息令牌B带了巨大的成功。

No we reinstall, receive token B, and the device subscribes to a particular alert type 2, we message token B with great success.

现在,因为我们没有将消息发送到令牌的应用程序进行卸载并重新安装的这段时间里,我们仍然可以留言两个令牌,以及应用程序接收他们。

Now since we didn't send a message to token A between the time the app was uninstalled and reinstalled, we can still message both tokens, and the app receives them both.

如果我们试图消息令牌A,同时应用程序卸载,我们可以清理这从谷歌的回应。

Had we tried to message token A while the app was uninstalled, we could have cleaned that up from Google's response.

有没有办法知道,一个令牌在技术上不再有效?

Is there any way to know that token A is technically no longer valid?

推荐答案

我假设通过令牌,实际上是指的是注册ID。旧的注册ID可以保持活跃了一段时间。但是谷歌告诉你,你需要通过的规范ID 在响应您发送的信息。

I'm assuming that by 'token' you are actually referring to the registration ID. Old registration IDs can remain active for a while. However Google tells you that you need to update your regid for a particular device/app combination by means of the canonical ID in the response to your sent message.

这篇关于做旧GCM令牌住,即使卸载后?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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