dqmq0654 2017-01-13 15:57
浏览 37

不要将推送发送给不再拥有该应用的用户?

I have a GSM PUSH panel and it happens that when user installs the app I record his id to send future notifications.

But after it uninstalls I continue with the ID of it saved in the database and whenever I run my routine, it sends the push to those users even without having the app installed.

The problem is that I already have thousands of id's and now it's taking more and more to send.

Is it possible to know who does not have the app installed anymore and put a flag in the database so it is no longer sent?

Example of JSon return:

{"multicast_id":5157270514039936452,"success":2,"failure":1,"canonical_ids":0,"results":[{"message_id":"0:1474029083357948%0e3f0485f9fd7acv"},{"error":"MismatchSenderId"},{"message_id":"0:1474029083356778%f17b55e1f9fd7erf"}]}
  • 写回答

1条回答 默认 最新

  • doujiao3074 2017-01-13 17:24
    关注

    You have to implement it:(https://developers.google.com/cloud-messaging/registration)

    1. The end user uninstalls the client app.

    2. The app server sends a message to GCM connection server.

    3. The GCM connection server sends the message to the GCM client on the device.
    4. The GCM client on the device receives the message and detects that the client app has been uninstalled; the detection details depend on the platform on which the client app is running.
    5. The GCM client on the device informs the GCM connection server that the client app was uninstalled.
    6. The GCM connection server marks the registration token for deletion.

    7. The app server sends a message to GCM.

    8. The GCM returns a NotRegistered error message to the app server.

    9. The app server should delete the registration token.

    评论

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么