Similarities and differences between Android and Apple push

Source: Internet
Author: User

Similarities:

Implementation ideas.

Your Server communicates with Apple (apns) or Google push server. The push server sends push information to the corresponding terminal device based on the corresponding conditions (for example, the current terminal is online.

The terminal device informs the push server of my existence through a self-identification mechanism, and sends the push server an ID returned to the terminal to its own server. When the push server needs to be pushed, to communicate with apple or android push server, send the ID information.

Differences:

Device identity determination

Apple

Each device has a unique device certificate, and apns also has a server certificate. When the two are created, check the certificate validity..

The push authentication check is divided into two layers:

1. TLS encrypted connection

If the TLS connection is successful, the device certificate is sent to apns, and a TLS handshake is performed every 15 minutes. If the handshake fails, the connection will continue.

2. Token Authentication

After the TLS connection is successful, the device token of each device is calculated through the device certificate and key, and then the device token is sent to the terminal device to determine the unique identity of the device.

 

Android

You need to register a Gmail mailbox and use the Gmail mailbox to determine the terminal device.

Related Article

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.