摘要:
if(navigator.userAgent.match(/Android/i)) { window.location = 'http://apk.hiapk.com/m/downloads?id=com.shixun.sunwaykids&vcode=6'; } if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1) || (navigator.userAgent.indexOf('iPad& 阅读全文
摘要:
1.准备好aps_developer_identity.cer, push.p12这两个证书文件2. 生成证书如下:openssl x509 -in aps_developer_identity.cer -inform der -out PushChatCert.pemopenssl pkcs12 -nocerts -out PushChatKey.pem -in Push.p12Enter Import Password:MAC verified OKEnter PEM pass phrase:Verifying – Enter PEM pass phrase:把私钥和证书整合到一个.pem 阅读全文
摘要:
转自:https://blog.serverdensity.com/how-to-renew-your-apple-push-notification-push-ssl-certificate/It’s coming up to a year since we launch ourserver monitoring iPhone applicationand so our Apple push notification SSL certificate is expiring in a few weeks. It is necessary to renew it and install the 阅读全文
摘要:
转自:https://blog.serverdensity.com/how-to-build-an-apple-push-notification-provider-server-tutorial/One of the widely anticipated features of the newiPhone OS 3.0ispush notificationswhich allow messages to be sent directly to an individual device relevant to the application that has been installed. A 阅读全文
摘要:
转自:http://cloudfields.net/blog/ios-push-notifications-encryption/The serious pains of setting up a Remote Push Notification in an iOS app come not from coding the app itself. They mostly relate in making the intermediate environment to connect with the Apple Push Notification Servers (APNS) and the 阅读全文
摘要:
转自:http://www.raywenderlich.com/32963/apple-push-notification-services-in-ios-6-tutorial-part-2Update 4/12/2013: Fully updated for iOS 6 (original post byMatthijs Hollemans, update byAli Hafizji).This is the second part of a 2-part tutorial series on integrating Apple Push Notification Services (APN 阅读全文
摘要:
转自:http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1Update 4/12/2013: Fully updated for iOS 6 (original post byMatthijs Hollemans, update byAli Hafizji).In iOS, apps can’t do a lot in the background. Apps are only allowed to do limited set of activities so 阅读全文
摘要:
用途:pkcs12文件工具,能生成和分析pkcs12文件。PKCS#12文件可以被用于多个项目,例如包含Netscape、MSIE和MS Outlook。用法:openssl pkcs12 [-export] [-chain] [-inkey filename] [-certfile filename] [-CApath arg] [-CAfile arg] [-name name] [-caname name] [-in filename] [-out filename] [-noout] [-nomacver] [-nocerts] [-clcerts] [-cacerts] [-noke 阅读全文
摘要:
转自:http://2015.iteye.com/blog/1567777以前写了一篇文章:iOS消息推送机制的实现,这篇文章中生成的是p12文件,但是php是用的pem文件,生成的方法和p12文件有些不同。一、CSR文件1、生成Certificate Signing Request(CSR)2、填写你的邮箱和常用名称,并选择保存到硬盘。点击继续:这样就在本地生成了一个Push.certSigningRequest文件。二、SSL certificate文件1、用你付过费的帐号登录到iOS Provisioning Portal,并新建一个App ID,这个过程可以参考:iOS应用的真机调试, 阅读全文
摘要:
转自:http://2015.iteye.com/blog/1337599iOS消息推送的工作机制可以简单的用下图来概括:Provider是指某个iPhone软件的Push服务器,APNS是Apple Push Notification Service的缩写,是苹果的服务器。上图可以分为三个阶段:第一阶段:应用程序把要发送的消息、目的iPhone的标识打包,发给APNS。第二阶段:APNS在自身的已注册Push服务的iPhone列表中,查找有相应标识的iPhone,并把消息发送到iPhone。第三阶段:iPhone把发来的消息传递给相应的应用程序,并且按照设定弹出Push通知。从上图我们可以看 阅读全文