通过PHP Server推送ios

btm*_*dan 0 php iphone apple-push-notifications ios

我想在我的IOS应用程序中实现.我已经为推送通知创建了证书,pushkey.pem当我从我的mac实现它时,我已经在设备中收到推送通知但是当我尝试从我的服务器实现它时,我收到以下错误我不知道如何过来这个问题请建议我解决这个问题

错误

1)Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Connection refused)

2)Warning: fwrite(): supplied argument is not a valid stream resource

3)Warning: fclose(): supplied argument is not a valid stream resource

Alb*_*eph 6

嗨,朋友请参考教程 http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1 他们解释了有关推送通知以及如何实施的所有内容.

您还可以获得iOS和PHP示例代码.