IOS development: App message push (latest), iosapp
Today, this cainiao will give you a simple IOSApp message push tutorial! Everything starts from 0, including XCode6, IOS8, and how to register the application, apply for a certificate, and download the configuration profile from the apple Developer Center. I believe many people who are new to ios will want to know about it. (Ps: although I have read many good tutorials about pushing on the internet, I also learned them step by step. However, these tutorials were last year or earlier, it is not suitable for new users)
Here are some better ios apps and game source code case: http://code.662p.com/list/12_1.html
Part 1
The first step is to introduce Apple's push mechanism (APNS ), let's take a look at an overview of Apple's official explanation of its push.
<Ignore_js_op>
Provider is the server that sends Push messages to your mobile app, while APNS (Apple Push Notification Service) is the Apple message pushing server. When your local server needs to push a message to the application, it first needs to send the message to the Apple push server, and then the apple push server sends the message to the mobile phone where the application is installed.
Next, let's look at an illustration:
<Ignore_js_op>
Based on the logic, I will explain it to you:
1. Your IOS app needs to register the APNS message push function.
2. When the apple APNS push server receives a registration message from your application, it returns a device token to you (very important)
3. Send the device Token received by the application to your local Push server.
4. When you need to push messages to applications, your local push server will package the messages and Device tokens and send them to Apple's APNS server.
5. APNS then pushes messages to the target iphone
Part 2
1. issue a certificate from the Certificate Authority
Open your mac key string for access: <ignore_js_op> then click the key string for access
<Ignore_js_op>
20141114180017886. jpg (70.11 KB, downloads: 0)
Download the attachment and save it to the album.
Upload at the day before yesterday
Then it will pop up a window <ignore_js_op>
Http://ios.662p.com/thread-2263-1-1.html