How iOS implements remote push messages

Source: Internet
Author: User

Remote push can resolve a push message that cannot be received when the user closes the program. When the client uses the remote push feature, the server can receive a push message regardless of whether the user has closed the program.

Apple's remote push is based on long connections, and by default all Apple devices are connected to Apple's APNs server as long as the device is networked.

Benefits of long connections: The Apple server can proactively send messages to the client or retrieve my device (when the device is lost).

Remote Push step: Client gets Devicetoken steps to Apple server: client sends Bundleid and device Udid to Apple APNs Server, Apple returns devicetoken to client as unique identity. The client then transmits the Devicetoken to our company's servers.

To debug a remote push condition: Must be a real machine

Configuration of the Push certificate: 1, if you are developing a debug push, configure the developed CER certificate aps_development.cer and description file

2, if it is the Publisher debug push, configure Aps_production.cer and profile.

  

How iOS implements remote push messages

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.