iOS push notifications request and use configuration for iOS push certificates

Source: Internet
Author: User


Many people first contact push notifications and don't know how to apply for an iOS push certificate and configure push.

Many people's mistake is to use the push Certificate P12 to package IPA, push is not used for packaging, the following details the application and configuration of the iOS push certificate to use.

The iOS push certificate is divided into the iOS push certificate for test Debugging (development environment) and the iOS push certificate that is listed on the App Store! (Production environment)

App to push notifications first, tick the push service when creating AppID.

Push certificate is configured to upload to the push platform, such as the Aurora push, push, Xiaomi push, etc., is not used to package IPA, the following will be introduced.

First, create a unique identifier app IDs

First open the developer Center Https://developer.apple.com/account and go to the certificate page.

If you have previously created AppID, go in and modify to add the next push service is OK, do not re-create.

1.1 Click on the certificate, ID and accessory file to enter the settings.


1.2 Select app Ids–> Click + Create a new app ID


There are two items that you need to fill out yourself:

The first name, used to describe your app ID, this random, no restrictions, preferably the project name, so as to facilitate their own identification (not allowed in Chinese)

The second bundle ID (app ID Suffix), which is the suffix of your app ID, needs to be carefully filled in. It is used to mark our app so that it has a fixed identity and is directly related to your program. The format for filling out the Explicit App ID is: Com.company.appName (two points.) write in the format, write a convenient to remember, a lot of places to use later.

The third Configuration service permissions, default will choose 2 items, can not be modified, other commonly used apple payment, App push notification, here to push notifications tick on, and then click Continue confirm, next.


Register and click Done to complete the creation of the app ID.

Push notifications The service is still yellow, because the iOS push certificate has not been created, and then the iOS push certificate created with Appuploader will turn green and the instructions take effect.


Second, the development of iOS push certificate, the development of a real machine tuning trial (development environment, with the development of certificate use, packaging with development certificate can use the development environment iOS push certificate Test push Notification iOS Development certificate request tutorial)

If the Appuploader is not installed, install it first.

Appuploader Installation Tutorials

1. Open the Appuploader and log in with the Apple developer account.


2. Select certificate Options


3. Click +add\ to select Apple push Notification service SSL (Sandbox)-ios development Environment Push Certificate

Enter the name of the certificate (optional), email (optional), password, select your app for the app ID, click OK to create.


4. Download and save the. p12 iOS certificate file

The push certificate is not a description file, only one p12, do not need to request a description file.


Third, iOS publishing push certificate, shelves App Store (production environment, with the use of publishing certificates, development environment Push certificate Test good push, with the release certificate shelves successfully, to push the background switch to generate environment push certificate)

1. Open the Appuploader and log in with the Apple developer account.


2. Select certificate Options


3. Click +add\ to select Push Notification service SLL (Sandbox & producyion)-ios production environment Push Certificate

Enter the name of the certificate (optional), email (optional), password, select your app for the appids, click OK to create.


3. Download and save the. p12 iOS certificate file


Iv. Configuring the iOS push certificate P12

Here is an example of a push platform and Hbuilder development tool configuration.

1, register a push platform login

http://www.getui.com/

Click on the left push-message push, go to the page and click on the registration app at the top right



2, configure the basic information of the app

App Name: Your app's name

Application platform: Android and Apple, iOS development environment (for testing, with development certificate use) iOS production environment (on shelves, with the shelves App Store)

If you are now testing select iOS development environment, upload the iOS development Environment Push Certificate P12, enter the certificate password OK.

App ID: is AppID, app IDs


3, configuration OK will generate push interface parameters, and so on to configure to the development tool packaging.


4, here to Hbuilder development tools for example, open the Manifest.json configuration file, select the module permissions configuration, select the message push module.


5, then select the SDK configuration, just in a push generated several interface parameter one by one corresponding to fill up.



6, with the corresponding development certificate packaging app installed to the phone can test push

Description: Write casually

Message content: {title: "Notification title", Content: "Notification Content", payload: "What to do here can be customized"} Be sure to use this format text can be changed

Title: Push Notification Header

Body: Push Content

The other options are on the default line,


7, then click Send Preview, and then click OK, push notifications sent out, and then see the mobile phone system bar has not received notification. Acceptance indicates that the test was successful, and that push is used normally, such as forfeiture to check that the configuration is correct.


iOS push notifications request and use configuration for iOS push certificates

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.