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