简体   繁体   English

错误:未注册 - GCM 推送通知

[英]Error:Not Registered - GCM Push Notification

I have done the GCM Integration in iOS client, and i am able to push a notification from DHC - REST client.我已经在 iOS 客户端中完成了 GCM 集成,并且能够从 DHC - REST 客户端推送通知。 When i tried my registration token in my backend php it says Error: Not Registered.当我在后端 php 中尝试注册令牌时,它显示错误:未注册。

Please help me on this, thanks in advance...请帮我解决这个问题,在此先感谢...

Try the following workarounds:尝试以下解决方法:

  • Make sure that the APNS token you're using to register with GCM is valid for the particular server.确保您用于向 GCM 注册的 APNS 令牌对特定服务器有效。

  • Make sure that you are using the right iOS Development Provisioning Profile.确保您使用的是正确的 iOS 开发配置文件。 Check if you're using the specific profile for your bundle name instead of aa generic one.检查您是否使用特定配置文件作为包名称而不是通用配置文件。 To get push and background notifications working again:要让推送和后台通知再次工作:

    • Remove/Uninstall the application from the test device.从测试设备中删除/卸载应用程序。
    • Perform 'clean' in XCode.在 XCode 中执行“干净”。
    • Perform 'build' in XCode.在 XCode 中执行“构建”。
    • Reinstall the app to the device.将应用程序重新安装到设备上。

You can check these related SO questions:您可以检查这些相关的 SO 问题:

Hope it helps!希望能帮助到你! :) :)

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

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