Ios-push certificate application and Aurora push method details, ios-push Aurora

Source: Internet
Author: User
Tags key string csr certificate

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.