How do iPhone and Android phones receive push notifications?

How do iPhone and Android phones receive push notifications?

How do we receive push notifications on our phones or computers?

Usually we can use the messaging solution Firebase to support push notifications. The following figure shows how Firebase Cloud Messaging (FCM) works.

FCM is a cross-platform messaging solution that can reliably write, send, queue, and route push notifications. It provides a unified API between message senders (application servers) and receivers (client apps). Application developers can use this solution to improve user retention.

Step 1 - 2

When the client application starts for the first time, the client application sends credentials to FCM, including Sender ID, API Key, and App ID. FCM generates a registration token (Registration Token, so the registration token is also called instance ID) for the client application instance. This token must be included in the notification.

Step 3

The client application sends the registration token to the application server. The application server caches the token for subsequent communications. Over time, the application server will have too many tokens to maintain, so the recommended practice is to store tokens with timestamps and delete expired tokens from time to time.

Step 4

There are two ways to send a message. One is to write the message directly in the console GUI (step 4.1), and the other is to send the message from the application server (step 4.2).

Step 5

FCM receives the message and puts it into a storage queue if the device is not online.

Step 6

FCM forwards the information to the platform-level transport layer. The transport layer handles platform-specific configuration.

Step 7

Routes information to the target device. Notifications can be displayed based on the configuration sent by the application server.

<<:  The future of wearable technology and its applications

>>:  Let's talk about the love and hate between ordinary permissions and dangerous permissions

Recommend

10 efficient methods to convert new users into first orders

Attracting new users is one of the most troubleso...

Learn these 7 techniques, and even beginners can play Douyin in minutes

Recently, I often see complaints about Douyin in ...

How to write an activity plan? Here are 3 great tips!

At work, we often encounter such problems: The co...

Is it a person or a person? Who "tampered" with your memory?

Recently, a great debate on memory has been spark...

People who often eat midnight snacks must be careful about this problem~

Audit expert: Wu Xi Associate Chief Physician, De...

How did people prevent earthquakes and provide disaster relief in ancient times?

A brief discussion on the strategies of ancient p...

Apple's coolest innovation: battery technology

Perhaps the most exciting new technology Apple un...

Pinduoduo’s user growth skills!

1 The number of active buyers on Pinduoduo reache...

A look at the new “her economy” led by Meitu Beauty AI from Black Friday

From the moment we are born, we have more or less...

Quick guide to host live broadcast!

1. The difference between live broadcast and live...

New iPod touch review: Is it worth the money?

Last month, Apple quietly released a new iPod tou...

100% Method to Create a Hot Short Video Account

In the era of attention economy, short videos hav...

How much does it cost to create a course purchasing mini program in Liuzhou?

There is no fixed price for the production of the...