之前已经给开发环境中,添加了极光推送:
[记录]给iOS的企业开发者帐号的项目中集成极光推送JPUSH的消息推送服务
现在继续去弄,生产环境的,推送。
先要去,重新创建生产环境的推送相关的:
证书
app id
pp文件
去给已有的App ID,编辑,添加生产环境的Push Notifications
然后对于:
Production SSL Certificate
Create an additional certificate to use for this App ID.
点击:
Create Certificate…
About Creating a Certificate Signing Request (CSR) To manually generate a Certificate, you need a Certificate Signing Request (CSR) file from your Mac. To create a CSR file, follow the instructions below to create one using Keychain Access. Create a CSR file. In the Applications folder on your Mac, open the Utilities folder and launch Keychain Access. Within the Keychain Access drop down menu, select Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority. In the Certificate Information window, enter the following information: In the User Email Address field, enter your email address. In the Common Name field, create a name for your private key (e.g., John Doe Dev Key). The CA Email Address field should be left empty. In the "Request is" group, select the "Saved to disk" option. Click Continue within Keychain Access to complete the CSR generating process. |
然后下载到本地:
保存为:
com.qorosauto.QorosSalesApp_ApplePushService_Production.cer
然后双击,去安装到Mac中的钥匙串中:
然后导出p12文件:
继续去设置密码:
QorosSaleApp
然后输入自己的Mac的登录密码:
导出了:
com.qorosauto.QorosSalesApp_APS_Production.p12
然后再去创建对应的pp文件:
Distribution
In House
To sign iOS apps for In House Distribution, you need a Certificate.
Select App ID. If you plan to use services such as Game Center, In-App Purchase, and Push Notifications, or want a Bundle ID unique to a single app, use an explicit App ID. If you want to create one provisioning profile for multiple apps or don’t need a specific Bundle ID, select a wildcard App ID. Wildcard App IDs use an asterisk (*) as the last digit in the Bundle ID field. Please note that iOS App IDs and Mac App IDs cannot be used interchangeably. |
Select the certificates you wish to include in this provisioning profile. To use this profile to install an app, the certificate the app was signed with must be included. |
QorosautoQorosSalesApp_APS_Production
Name this profile and generate. The name you provide will be used to identify the profile in the portal. Profile Name: Type: iOS Universal App ID: QorosSalesApp (A3TJ5GFDTW.com.qorosauto.QorosSalesApp) Certificates: 1Included |
Your provisioning profile is ready. Download and Install Download and double click the following file to install your Provisioning Profile. Name: QorosautoQorosSalesApp_APS_Production Type: iOS UniversalDistribution App ID: A3TJ5GFDTW.com.qorosauto.QorosSalesApp Expires: Jul 24, 2017 |
然后就可以去:
Xcode中,使用这个新建的PP文件了。
然后是:
[记录]用iTunes中安装带生产环境的Jpush推送的ipa到iPhone真机中
转载请注明:在路上 » [记录]给企业账号的生产环境添加极光的消息推送