没有使用ADHoc证书获取推送通知

时间:2014-12-25 04:04:19

标签: ios objective-c iphone push-notification nsnotification

我正在使用带有ADHoc配置证书的production.pem测试推送通知。从服务器端发送成功但设备未收到通知。请帮帮我

谢谢

4 个答案:

答案 0 :(得分:0)

服务器将显示成功意味着问题在您身边,请检查以下三个方案

1.) The gateway should be gateway.push.apple.com:2195
2.) You have refreshed your provisioning profile after creating APNS certificate
3.)Your Device Token is correct corresponding to the Distribution Provisioning profile

N.B如果以上所有内容都是正确的,请确保您的应用程序在后台,如果您的应用程序位于前台,那么您将收到推送通知,但无法看到它

答案 1 :(得分:0)

请注意,推送通知的即席测试仅在应用程序安装在设备上而不使用xcode + usb cable在设备上安装应用程序时才有效。该应用程序必须通过TestFlight(或类似)或其他类似diawi.com

的方式发送到手机

答案 2 :(得分:0)

您可以在服务器端登记。

List<PushedNotification> notifications = Push.alert("TEST TEST",keystorePath,"test", ***true***, devices); => For Distribution 

For development => List<PushedNotification> notifications = Push.alert("TEST TEST",keystorePath,"test", ***False***, devices)

答案 3 :(得分:0)

检查您的设备令牌。有两个设备令牌。第一个是当您使用开发运行应用程序时,另一个是使用生产运行app。这些是不同的。使用Ad-hoc设备令牌。