Time flies fast, the blink of an eye is December. After work, found that the rhythm can not stop, like being on the wind, no longer by themselves. Working days such as running water, weekends are fleeting. In fact, there is time to think, but not very good use, or spent on meaningless things above. People always have inertia, but it's not good to keep going.
Last week began to contact the third party cloud push, has experienced the aurora push, a push and Baidu cloud push, also feel the characteristics of each platform. Some of the deployment is convenient, some powerful, some stable and reliable. Today briefly introduce the use of Baidu cloud push.
Baidu Cloud push gave me the feeling is stable and reliable, after all, Baidu produced, trustworthy. And rich media push is also free, and won the Aurora push a chip. A push, a rich variety of features, but the deployment is more cumbersome, according to the document operation is not necessarily able to deploy successfully.
Baidu's cloud push and application engine are "Baidu Open service platform", so the operation is very similar, first in the management console to create an application, you can see and application engine applications belong to peers:
Http://developer.baidu.com/console#app/project
Click "Cloud Push" and then "Push settings":
After filling in the package name, click on the quick example, then download the example:
After decompression is an APK and an Android engineering directory, as follows:
Fill in the notification offline time and then save:
To run on a machine connected to the network:
The following can be pushed:
Create a new "notification":
In the advanced settings you can set the click Notification Time, here we open a URL:
The machine received a message immediately:
Click the message to enter the default URL:
Just a quick demo today to integrate into your application later.
Reprint Please specify source: Zhou Mushi's csdn blog Http://blog.csdn.net/zhoumushui
My github: Zhou Mushi's GitHub Https://github.com/zhoumushui
Android using third-party push (ii) Baidu cloud push send