【发布时间】:2014-08-28 06:34:30
【问题描述】:
我正在尝试设置推送通知服务器。我决定不使用 node.js 而是使用 php,因为我的服务器逻辑的其余部分是使用 PHP 开发的。
我一直在环顾四周,基本上我可以看到两种方法。
一个带有 CURL 的:
- https://gist.github.com/prime31/5675017
- http://gonzalo123.com/2013/08/05/sending-android-push-notifications-from-php-to-phonegap-applications/
- https://www.parse.com/questions/php-rest-example-of-targeted-push
- http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
- http://javapapers.com/android/google-cloud-messaging-gcm-for-android-and-push-notifications/
另一个带有 Stream_context 的:
- http://vxtindia.com/blog/push-notifications-for-your-iphone-app-with-php-and-ubuntu/
- https://gist.github.com/samvermette/759564
- http://iosapplove.com/archive/2013/01/apns-tutorial-how-to-send-pushnotifications-to-my-iphone-ipad-app-part-2/
- https://blog.serverdensity.com/how-to-build-an-apple-push-notification-provider-server-tutorial/
一种方法与另一种方法相比有什么区别和优势? stream_context 有什么特殊配置吗?更可靠?
感谢您的帮助。
【问题讨论】:
标签: php curl push-notification apple-push-notifications