简体   繁体   English

Windows Server Push Notification iOS的APNS问题

[英]APNS issues with windows server Push Notification iOS

I'm having issues when uploading and running my php script to a windows web server. 将php脚本上传并运行到Windows Web服务器时出现问题。

The php (with accompanying certificate and key) works on my local machine, but not when I upload and run the script from the web server. php(带有随附的证书和密钥)可以在我的本地计算机上使用,但是当我从Web服务器上载并运行脚本时无法使用。

Is this a certificate issue? 这是证书问题吗? I've followed many different tutorials, but am obviously missing some fundamental piece. 我遵循了许多不同的教程,但是显然缺少一些基本的知识。

The tutorial I used to get the push working on my Mac's local MAMP server is: http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1 我用来在Mac的本地MAMP服务器上进行推送的教程是: http : //www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1

I've also found the following thread which seems to have solved the issue, but I can seem to get it working myself :( ... "This took me forever to figure out but I finally pieced it all together from the minor clues people left." http://arashnorouzi.wordpress.com/2011/06/19/sending-apple-push-notifications-in-asp-net-and-c-–-part-4-apns-sharp-c-wrapper-class/ 我还找到了以下似乎可以解决该问题的线程,但我似乎可以自己使用它:( ... ...“这花了我一辈子的时间,但最终我从小提示中将它们拼凑在一起左。” http://arashnorouzi.wordpress.com/2011/06/19/sending-apple-push-notifications-in-asp-net-and-c-–-part-4-apns-sharp-c-wrapper -类/

You need to download the certificate for the APPID that you register on the developer portal. 您需要下载在开发人员门户上注册的APPID的证书。 That certificate must be converted into a P12 format to be used on Windows. 该证书必须转换为P12格式才能在Windows上使用。

If you are running Yosemite, the easiest way to do this is to import the certificate to your keychain, then export it to a .p12 file. 如果您运行的是优胜美地,最简单的方法是将证书导入到钥匙串中,然后将其导出到.p12文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM