android--message Push

Source: Internet
Author: User
1. Push

GCM Google Cloud messaging service. (Domestic situation)

Long connection, a communication connection is always established between the client and the server. Called Push

Short connection, pseudo push, called polling

Instant communication implemented by short connections is pseudo-instant communication,

Push difficulty: Concurrency, identity sound authentication, wire break re-connect, but no benefit to programmers. You can have one. The programmers who are pursuing it, still have to figure it out. Work is irreplaceable.

Third-party push platform: Aurora push, push, Baidu push, Xiaomi push send.

2. Aurora Push

1, is the Libs under the copy of everything under the Libs

2. Modify the XML file, replace the package name, replace the app key

Add code

The difference between notification and push.

3. There is also a receiver in the XML (the code here is advanced--receive push message receiver)

After the Registration ID client and Aurora Push establish a connection, the server side will give the client an ID

Setting aliases (alias)

Rich media seems to be charging for it.

android--message Push

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.