Create a new empty project with the Android Studio tool first.
Step One (Get Appkey)
1. On the Aurora official platform to create new text messaging applications (according to the requirements of the package name and application name completed)
2. Get Jpush_appkey
Step Two (import third party libraries and so files)
1. Open applications with Android Stud
settings, instead of adding a new tag.Valid tags: uppercase/lowercase letters, numbers, underscores, and Chinese characters.Limit: The name length of each tag is limited to 40. A maximum of 100 tags can be set, but the total length cannot exceed 1 kb.9. Notifications and custom messages
NotificationOr push notification, that is, a notification message displayed on the notification bar (status bar) of the mobile phone. This is the basic function of An
Transferred from: http://www.cnblogs.com/zhanghaoh/archive/2013/02/20/2919282.html// Send to Android and iOS devices New // Send to Android and iOS devices while specifying offline message save time new// Specify some kind of device to send New // Specify some kind of device to send, and specify the offline message save time
Absrtact: This implementation of the user login registration, save the user to application inside to achieve user persistence, the user has read message view, unread message view, send Message function, unread message read, add to the read message inside, send message has push function can all send, and select personnel to send, After sending the message, if the current user will receive a taskbar notification online, click on the notification to see the message, Login to the app, the app will g
= "true" android:exported = "false" > receiver Android:name= "Cn.jpush.android.service.AlarmReceiver"android:exported= "false"/> Data Android:name= "Jpush_channel"Android:value= "Developer-default"/> Data Android:name= "Jpush_appkey"Android:value= "82426619de889cf8b2bea0e5"/> Public classMyreceiverextendsBroadcastreceiver {//because the broadcast is registered in the manifest file, the context here is application's context,application context cannot be used directly to start a//Activity//if th
http://docs.jpush.io/guideline/faq/#androidA third-party system cannot receive push messagesBecause the management software of the third party ROM needs the user to operate manually
Millet "MIUI"
Self-Starting management: The application needs to be added to the "Self-startup Management" list, otherwise the process cannot be opened after the kill process or reboot
Notification Bar settings: The app defaults to display notification bar notifications, and if you close, you wo
1, the required jar bag
Aurora Java version of JDK Jpush-client-3.2.9.jar
Dependent Jar Pack Gson-2.6.2.jar
2. Sample Code
Package com.wqd;Import cn.jpush.api.JPushClient;Import Cn.jpush.api.push.PushResult;Import Cn.jpush.api.push.model.Message;Import Cn.jpush.api.push.model.Platform;Import Cn.jpush.api.push.model.PushPayload;Import cn.jpush.api.push.model.audience.Audience;Import Cn.jpush.api.push.model.audience.AudienceTarget;Import cn.jpush.api
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.