Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/105.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 分布式配置文件的推送通知不起作用。?_Ios_Objective C_Push Notification_App Store - Fatal编程技术网

Ios 分布式配置文件的推送通知不起作用。?

Ios 分布式配置文件的推送通知不起作用。?,ios,objective-c,push-notification,app-store,Ios,Objective C,Push Notification,App Store,嗨,我已经提交了一个应用程序,在开发模式下推送通知正在工作 我只是按照这个网站www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1中的步骤操作 但是,在分布式配置文件中,我做了以下事情 1. $ openssl x509 -in aps_production.cer -inform der -out PushChatCert.pem 2.$ openssl pkcs12 -no

嗨,我已经提交了一个应用程序,在开发模式下推送通知正在工作

我只是按照这个网站
www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1中的步骤操作
但是,在分布式配置文件中,我做了以下事情

1. $ openssl x509 -in aps_production.cer -inform der -out PushChatCert.pem

2.$ openssl pkcs12 -nocerts -out PushChatKey.pem -in PushChatKey.p12
Enter Import Password: 
MAC verified OK
Enter PEM pass phrase: 
Verifying - Enter PEM pass phrase:



3. cat PushChatCert.pem PushChatKey.pem > ck.pem

4.$ telnet gateway.push.apple.com 2195
Trying 17.172.232.226...
Connected to gateway.push-apple.com.akadns.net.
Escape character is '^]'.

5.$ openssl s_client -connect gateway.sandbox.push.apple.com:2195 
    -cert PushChatCert.pem -key PushChatKey.pem
Enter pass phrase for PushChatKey.pem: 
但我不知道为什么当我发送推送通知时它会显示

“已连接到APNS
消息已成功传递”,但没有人通过live app(应用商店中的应用)收到通知


请帮助我

我也学习了同样的教程,面临着同样的问题。 尝试更改生产的URL。(添加hoc/production)


希望这会有所帮助。

我建议您首先将设备连接到mac,初始化应用程序并检查设备日志。它应该说明APNS是否被正确授权。在Appstore中,证书推送通知不起作用。使用临时的,它会工作的。
$fp = stream_socket_client(
    'ssl://gateway.push.apple.com:2195', $err, $errstr, 60,
    STREAM_CLIENT_CONNECT | STREAM_CLIENT_PERSISTENT, $ctx);