Now Android has a lot of third-party push interface, greatly saving our time, let us focus on the software itself to write.
Aurora Push as a more mature push API, it is very convenient to use, to summarize today.
After registering your account, first create an app, such as:
After the app is created, the app identity (AppKey) and API Master Secret are generated, such as:
Then download Android Example:
After extracting it is an Android Project that imports eclipse:
Run directly:
You can then send a notification on the Web side:
After entering the notification content, enter the title in the optional settings (do not write the default to the app title) and display the length:
The notification object is divided into the following categories, covering different scopes respectively. Tag tags and alias aliases can be defined in the code through the following interfaces:
public static void Setaliasandtags (context context, String alias, set<string> tags, tagaliascallback callback)
public static void Setalias (context context, String alias, Tagaliascallback callback)
public static void Settags (context context, set<string> tags, tagaliascallback callback)
Phone-Side effects:
It's not too early, let's get here today, let's summarize the Aurora push custom Message section.
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 uses third-party push (one) Aurora push notifications