Android uses third-party push (2) Baidu cloud push
Time flies, and in the twinkling of an eye, it's December. After work, I found that the rhythm could not be stopped, as if I had been wound up, and I was no longer able to myself. Workdays are like running water, and weekends are even fleeting. In fact, there is time to think about it, but there is no good use, or it is spent on meaningless things. People always have inertia, but it is not good to continue.
Last week, we started to contact third-party cloud push, and experienced Aurora push, personal push, and Baidu cloud push. We also felt the features of various platforms. Some are easy to deploy, some are powerful, and some are stable and reliable. Today, we will briefly introduce the use of Baidu cloud push.
I feel that Baidu cloud is stable and reliable. After all, it is produced by Baidu and trustworthy. In addition, rich media push is free of charge and outshines Aurora push. But it is difficult to deploy. You may not be able to successfully deploy it according to the document.
Baidu's cloud push and application engine belong to the "Baidu open service platform", so the operation method is similar. First, create an application on the Management Console. You can see that the application is the same as the application of the application engine:
http://developer.baidu.com/console#app/project
<喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + teO796Gw1MbNxsvNobGjrMi7uvO9 + NDQobDNxsvNyejWw6Gxo7o8L3A + CjxwPjxpbWcgc3JjPQ = "http://www.2cto.com/uploadfile/Collfiles/20141202/2014120208140528.png" alt = "\">
Enter the package name, click quick example, and then download the example:
Decompress the package to an APK and an Android project directory, as shown below:
Enter the offline time of the notification and save it:
Run the following command on the machine connected to the network:
You can push the following:
Create a new "notification ":
In advanced settings, you can set the click notification time. Here we open a URL:
The machine immediately received the message:
Click a message to enter the preset URL:
Today we will give a simple demonstration, and then integrate it into your own application later.
Reprinted please indicate the source: Zhou mu Shui CSDN blog http://blog.csdn.net/zhoumushui
My GitHub: Zhou mu Shui's GitHub https://github.com/zhoumushui