Ios-push certificate application and Aurora push method details, ios-push Aurora
Push third-party platforms: Aurora, rongyun, etc.
The case column generally fails to receive the notification when the application is activated and the user is in use at the front-end.
In this case, we can use remote and local methods for development.
Aurora is used as an example.
Apply for a push Certificate
1) generate a. csr Certificate
Open the key string tool (Finder-> application-> utility-> key string access ),
Click "key string access" on the top menu bar to display the following interface,
Select certificate assistant-> request a certificate from the Certificate Authority
This certificate proves that your computer has been recognized by the certificate authority.
This certificate can be used once created.
2) appid
Certificates, Identifiers & Profiles
Select the appids option to add in the upper left corner
Enter the appid name
And bundle id
Select push notifications
Select and edit after generation to upload the csr Certificate
Last generate a. cer text
3) create a p12 Certificate
In the past, I needed to switch to the terminal. Now I don't need to. Just double-click the. cer certificate, import the key string, and right-click and export.
Enter the password and generate the P12 certificate.
Certificate completed
Pod 'jpush'
Pod install
Import header files
Importifdef NSFoundationVersionNumber_iOS_9_x_Maximportendif
8.0 enable push notifications in Capabillities
// Notice: It can be written in the format of 3.0.0 or a later version, or the previous registration method can be used.
JPUSHRegisterEntity * entity = [[JPUSHRegisterEntity alloc] init];
Entity. types = JPAuthorizationOptionAlert | JPAuthorizationOptionBadge | JPAuthorizationOptionSound;
If ([[UIDevice currentDevice]. systemVersion floatValue]> = 8.0 ){
// You can add custom categories
// NSSet