Discussion on implementation of Android push technology scheme

Source: Internet
Author: User

Background introduction

With the popularity of Apple products, push technology is becoming more and more popular in China. The push was first used for the messaging system. With the popularity of the iphone and Android phones, it is becoming increasingly common on mobile phones. Many mobile phone clients also often push some messages.

Application of Push Technology

The application of push technology in mobile phone mainly has two pieces: advertising push, SNS information push.

L Advertising push: to the current have a certain amount of installation but no profit model of mobile phone application developers to bring some hope, but pay attention to the frequency and content of the push to select, otherwise it will be because of the push things users are not interested in causing interruptions.

L SNS Information push: Mainly used for QQ space, Renren, Weibo and Tianya forum and other web2.0 community website Push Friends message, can be used to enhance user stickiness.

Push the imagination space is very big, and electric business group purchase, news information, life service and other kinds of applications have a strong combination of points:

such as electric business group purchase application, push can

1) offer limited time promotion (bus seconds Kill)

2) Real-time marketing activities according to the sale of goods (hot recommendation)

3) Provide personalized product information for accurate Marketing (association recommendation)

Even the app for push and matchmaking can have the following combination points:

1) on-line activities or TV matchmaking programs to participate in the notification sent

2) weekly referral of a blind date, and in advance through the multimedia display, for senior members to provide high value-added services

3) Attention to timely reminders, no longer miss the marriage

Client/ two ways to communicate with the server:

There are two ways of server and Client push, pull and push, respectively.

L Pull: The client periodically accesses the server and asks if there is any new information. Push, on the other hand, establishes a persistent connection channel between the mobile client and the server, which is sent to the phone via the channel as soon as the message is available.

L Push: The message is real-time compared to pull,push push, and it saves the power and traffic of the phone, and does not need to access the server regularly. Pull polling general information will have a delay of 1-10 minutes, and the power consumption is much more than the push method.

Push-to-deliver solutions

Currently the main push implementations on Android are as follows:

Scenario One, Google Cloud messageing

Google has its own push GCM (Google Cloud messageing) on Android to help developers send data to their Android apps.

GCM is relatively simple to use, but the following three defects also lead to GCM in the domestic basic is not available:

1.GCM requires Android to be 2.2 or more, so some 2.2 previous systems cannot be pushed

2. Domestic service is not stable, and many domestic terminal manufacturers have to remove Google's services, replace their own.

3. Users are required to bind Google accounts, but many domestic users do not have a Google account.

scenario two, using XMPP Protocol

XMPP is an XML-based protocol that inherits the flexibility of development in XML environments and is highly extensible. Including the above-mentioned GCM server bottom is also in the XMPP protocol encapsulation.

The disadvantage of XMPP protocol is also obvious: fee and electricity flow, the current consumption of intelligent machines is too large, in narrowband networks and unstable (mobile) network is not the best choice.

Scenario III, using MQTT Protocol

Mqtt is a lightweight, agent-based, "Publish/Subscribe" mode of message Transfer Protocol.

The MQTT protocol also has its drawbacks: complex protocols, high deployment costs, and not enough maturity.

Programme IV, use of third-party services

There are a number of third parties to provide similar services, the client only need to embed the Lib library provided by the third party, the third party to establish a long connection, responsible for receiving/sending messages. The foreign parse, pubnub do very good, the basic version is also free, but because we all understand the reasons for foreign services in the domestic often cannot visit.

Domestic do good have a push, Sina Weibo Android push also they do, concurrency reached 5000tps (can handle 5,000 transactions per second), daily distribution of messages is said to be more than 100 million, message arrival rate of more than 96%, delay less than 250ms, in other words, the message will be 1/ Arrive in 4 seconds. At the same time, the message has detailed report data, can be used to do data analysis mining and user experience improvement, overall is the lowest development cost.

There are two access modes for a push platform:

L Mass Mode

ü Provide mass management background to meet the message mass demand

ü No device deployment, open account on the same day, Client Integration SDK release can be used

L Business Integration Model

If you want to combine push with business depth, you can also use the business consolidation model that it provides.

ü Provides a server-side API interface that can be deeply integrated with customers ' existing business systems

ü Customers generally after 1-2 weeks of development and transformation can realize the new function of the line

By comparing the four schemes, we can find that each scheme has its own advantages and disadvantages. But in general, third-party push access is relatively simple and easy to develop. Whether from the arrival rate of the message, integrated development costs, concurrency, or the level of statistical reporting, a push is a great performance. Interested friends can go to the following address experience: http://www.igetui.com

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.