Joke Collection Website - Public benefit messages - How is app notification push implemented?

How is app notification push implemented?

Three ways to achieve APP push:

1. Polling mode (pull)

The client and the server establish a regular connection and query whether there are new messages through the message queue.

2. SMS Push (SMS Push)

Send a push message through SMS, and embed a SMS interception module (mainly for Android platform) in the client, which can intercept SMS and extract the content and forward it to the App application for processing.

3. Long connection mode (push)

Implement mobile push based on TCP long connection. After the client actively establishes a long TCP connection with the server, it will regularly send a heartbeat packet to the server to keep the connection. When there is a message, the server directly notifies the client through this established TCP connection.

Long connection based on TCP is the mainstream push mode. Based on this push mode, a series of system-level and application-level push solutions are gradually developed.

System-level solutions include iOS platform (APNS) APNS) APNs)Android platform (C2DM). In view of the fact that the Android platform cannot provide C2DM push, a large number of third-party push service providers have emerged in China. At present, the most widely used third-party push service providers, such as Aurora Push, are very good. Aurora Push is a tested large-scale App push platform, which pushes tens of billions of messages every day. After developers integrate SDK, they can push messages by calling API.