Cordova iOS app 使用极光推送相关(一些不重要的东
极光推送送达率蛮高的,有推送需求的可以用下。
此文档只是讲解一些细节,没有配图(本人比较懒,有需要我再补充)
极光安装:(推荐使用下述方式)
第一种:cordova plugin add jpush-phonegap-plugin --variable API_KEY=your_jpush_appkey
第二种:cordova plugin add https://github.com/jpush/jpush-phonegap-plugin.git --variable API_KEY=your_jpush_appkey
your_jpush_appkey 需要你自己去极光后台创建应用,才能拿到
ps:https://github.com/jpush/jpush-phonegap-plugin(极光的git地址)
1、先通过钥匙串申请证书(CertificateSigningRequest.certSigningRequest)

2、去苹果开发者中心创建相关证书(刚开始做的时候把我搞头晕了,,身为一名php开发,请原谅我对于这方面的愚昧)

在下图你需要创建开发证书和生产证书(其中包含推送的开发和生产证书)


这四个证书创建的时候需要用到之前使用的钥匙串申请的证书
创建好后下载下来,双击安装到钥匙串

上面Apple Devele开头、Apple Push开头 和iPone 开头的两个文件就是你安装的证书
其中名字中含有push的证书就是推送的证书,极光需要你上传,你需要在这里导出(导出p12格式)

然后开始创建iOS App IDs 和 iOS Provisioning Profiles 文件
创建iOS App IDs 要记得开启 Push Notifications 这个选项,并创建推送证书(我们之前已经创建了)
创建 iOS Provisioning Profiles

下一步去选择你之前创建的appids 还有相关证书。
创建完毕后下载下来
3,Xcode 改版了(所以下面简单了)

打开Xcode 登录你的账户,然后signing这里勾选,再把刚才下载的Provisioning Profiles 双击打开
(不知道改版后是否需要此操作,但是我会双击,以防万一)

完成这些后,其他的操作你应该在其他帖子里面看到了相关操作,我就不多说了。有问题可直接留言,看到就回答。ps 我也是新手,别寄太大希望。。说好的不配图。但是我发现配图可以少打字。(哈哈哈哈哈)