Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.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设备上未接收到APNS消息,但已发送_Ios_Xcode_Push Notification_Apple Push Notifications - Fatal编程技术网

iOS设备上未接收到APNS消息,但已发送

iOS设备上未接收到APNS消息,但已发送,ios,xcode,push-notification,apple-push-notifications,Ios,Xcode,Push Notification,Apple Push Notifications,我已经建立了一个应用程序,它有推送通知。我使用WordPress插件发送通知,这些通知已成功发送,但我的iOS设备未收到 我有一个VPS服务器,端口为2195,2196,5223&443打开TCP输入和输出。我还允许苹果用于通知的整个17.0.0.0/8ip地址块 我可以从我的服务器远程登录到苹果,并在端口2195上成功连接: telnet gateway.sandbox.push.apple.com 2195 Trying 17.172.233.65... Connected to gatew

我已经建立了一个应用程序,它有推送通知。我使用WordPress插件发送通知,这些通知已成功发送,但我的iOS设备未收到

我有一个VPS服务器,端口为
2195
2196
5223
&
443
打开TCP输入和输出。我还允许苹果用于通知的整个
17.0.0.0/8
ip地址块

我可以从我的服务器远程登录到苹果,并在端口
2195
上成功连接:

telnet gateway.sandbox.push.apple.com 2195
Trying 17.172.233.65...
Connected to gateway.sandbox.push.apple.com.
Escape character is '^]'.
我曾多次尝试使用
.pem
证书等。。。但我不能让它工作。这是我使用过的第一个应用程序,所以我知道的不多

我已经将这个应用程序和wp插件一起发送给了一位德国朋友,他测试了这个应用程序,并通过他的主机和iPhone收到了通知


有什么我遗漏的吗?

您检查过设备令牌在开发模式和分发模式下的不同吗?尝试
telnet
是不够的。尝试使用OpenSSH使用APNS开发证书进行SSH。