gpt4 book ai didi

android - 继续从黑莓推送注册中获取 TOO_MANY_REGISTRATIONS

转载 作者:行者123 更新时间:2023-11-30 02:40:59 26 4
gpt4 key购买 nike

我正在尝试将 android 项目移植到 BB10 应用程序。我已按照说明尽可能地实现 BB Push。我已经通过推送成功注册了我们的一个应用程序,但是当我尝试注册另一个应用程序时,服务器在 GCM Intent 上返回“TOO_MANY_REGISTRATIONS”。任何帮助表示赞赏。

项目 1 - android.cfg(为了安全和说明点更改了值)

<android>  
<push>
<appid>XXX1-XXXXXXXXXXXXXXXXXXXXXX</appid>
<ppgurl>https://cpXXX1.pushapi.na.blackberry.com</ppgurl>
<tokenprefix></tokenprefix>
</push>
</android>

项目 2 - android.cfg

<android>  
<push>
<appid>XXX2-XXXXXXXXXXXXXXXXXXXXXX</appid>
<ppgurl>https://cpXXX2.pushapi.na.blackberry.com</ppgurl>
<tokenprefix></tokenprefix>
</push>
</android>

编辑:我在同一部手机 (Z10) 上测试了这两个应用程序,据我了解,它会生成相同的设备 token 吗?

最佳答案

我最终解决了这个问题。我不得不安全删除手机。但这不一定需要。我不明白在 BB10 上您需要删除应用程序以清除缓存。所以可能只是删除应用程序并重新安装。

从新操作系统重新安装我的应用程序后,它运行良好。同样值得注意的是:

<ppgurl>http://cpXXX2.pushapi.na.blackberry.com</ppgurl> 

http 而不是 https,否则你会得到 INVALID_SENDER

关于android - 继续从黑莓推送注册中获取 TOO_MANY_REGISTRATIONS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25761485/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com