apns-Remote Push

Source: Internet
Author: User

I. Developing the push feature of iOS programs, what iOS needs to do

1. Request Apple to get Devicetoken

2. Get Apple back to Devicetoken

3. Send Devicetoken to the company's servers

4. Listen for user clicks on notifications

Two. Debugging the remote push feature of iOS, prerequisites:

1. Real Machine

2. Debug the required certificate file for push

1> Aps_development.cer: A computer can debug an app's push service

2> Ios_development.cer: The ability to debug a computer with a real machine (commissioning device)

3> iphone5_qq.mobileprovision: A computer can use a device to debug a program

Three. Publish Apps with push service

1> Aps_production.cer: If you publish a program that contains a push service, you must install this certificate

2> Ios_distribution.cer: The ability to release programs to your computer

3> qq.mobileprovision: A computer can publish a program

Certificate configuration 01– Create app ID

Attention

Remote push can only be tested on the real machine! So first to ensure that the real machine debugging environment no problem!

The first step in remote push is to create an app ID

The purpose is to show which app needs to use the push service

The app ID created for the remote push service must be the full name, not with *

Certificate configuration 02– Create APNs SSL certificate for app ID

Real-APNs SSL certificate: on which computer to debug the app with push service

APNs SSL certificate used by the Publisher: on which computer to publish the app with push service

Finally get 2 APNs SSL certificates

APNs Development IOS: A certificate for a real-computer-tuned trial

APNs Production IOS: Publishing a certificate for a program

Certificate configuration 03– Generate profile

The purpose of the description file is to describe

Which device is going to debug which program on which computer?

will eventually get 3 files

Aps_development.cer: Real-machine tuning trial

Aps_production.cer: Published by the program

Netease_news_iphone5_home.mobileprovision: Description File

Recommendation: Install the CER file first, and then install the Mobileprovision file

apns-Remote Push

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.