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 - 2When 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 3The 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 4There 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 5FCM receives the message and puts it into a storage queue if the device is not online. Step 6FCM forwards the information to the platform-level transport layer. The transport layer handles platform-specific configuration. Step 7Routes 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
Free reading apps have gained tens of millions of...
The current trend of website planning also tends ...
In the golden autumn, there is a "gold among...
Many people yearn for poetry and distant places, ...
In the past 10 months of 2021, the country's ...
How did you come up with the title ? Do you recei...
Up to now, the technology of SEO has a history of...
01. CNZZ -UDplus Website: udplus.umeng.com Note: ...
As a type of Internet operation , App operation c...
Whenever I first look at a document, I skim throu...
Whether it is a general giant APP or a specific v...
The 9th session of SEO training has started, and ...
Planning: Li Peiyuan Editor: Dong Xiaoxian Review...
01 This morning, I eavesdropped on a two-hour MLM...
Farewell and longing for the distant past, breaki...