IOS through a push-push principle

Source: Internet
Author: User

Currently used by the third-party push a lot, there are aurora, friends of the league, a push, and now mainly for a push, talk about my understanding of the push process.

In the project, the following steps are required if you want to implement the comment push feature:

1. When the user logs in, through the [getuisdk Bindalias:@ "User's unique identity"]; Bind User

    • The same alias binds up to 10 ClientID (for applications that allow multiple devices to log in at the same time), and when 10 ClientID are bound, calling this interface will automatically unbind the oldest bound record;
    • When ClientID is bound to alias A, the binding relationship with alias A is automatically dismissed if the interface binding alias B is called.
    • The interface is called up to 100 times within a day, and the interval of two calls is greater than 5s.

Unbind [getuisdk Unbindalias:Unique identifier of the user] when the user logs off the login;

    • The same alias binds up to 10 ClientID (for applications that allow multiple devices to log in at the same time), and when 10 ClientID are bound, calling this interface will automatically unbind the oldest bound record;
    • When ClientID is bound to alias A, the binding relationship with alias A is automatically dismissed if the interface binding alias B is called.
    • The interface is called up to 100 times within a day, and the interval of two calls is greater than 5s.

2. When a reviews B, the calling interface transmits the comments and B information to the server.

3. The server then passes the data through a push-through interface to a push server, a push server that uses the user's unique identity of B to find the ClientID he binds to and then pushes the server to package the comments and ClientID to APNs (Apple push Notification Service), PS (due to a push inside the push certificate is configured, so can link APNs)

4.APNs in the iphone list of its registered push service, find the iphone with the appropriate logo and send the message to the iphone.

5.iPhone sends the message to the appropriate application and pops the push notification as set.

6. Through a push interface, you can get the message through the message, the processing of messages

IOS through a push-push principle

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.