Joke Collection Website - Blessing messages - JPush push (Aurora push) push message
JPush push (Aurora push) push message
The necessary condition for its normal operation is that the JPush SDK maintains a connection with the JPush Server network. Please refer to this article for further understanding: Aurora Push Technology Principle: Mobile wireless network long connection.
Developers integrate JPush Android SDK into their applications. JPush Android SDK creates a long connection to JPush Cloud, providing the App with always-on capabilities.
When developers want to push messages to the App in a timely manner, they only need to call the JPush API push, or use other convenient smart push tools to easily communicate with users.
The red part in the picture is the contact point between JPush and App developers. On the mobile client side, the App needs to integrate the JPush SDK; on the server side, developers call the JPush REST API to push.
Developers who use jcenter's automatic integration do not need to add jar and so to the project, jcenter will automatically complete the dependencies; there is no need to add any JPush SDK related configuration in AndroidManifest.xml, jcenter will automatically import it .
If developers need to modify component properties, they can define a component with the same name in the local AndroidManifest and configure the desired properties, and then use xmlns:tools to control the local component to overwrite the component on jcenter.
Take the android project as an example, use Android Studio to automatically integrate (jcenter) into Aurora Push
After the configuration is completed, click the button as shown in the picture, as is required for automatic integration, and no error is reported. You can proceed to the next item
Test result prompt:
Official document special instructions
Note: If there is no res/drawable-xxxx/jpush_notification_icon resource, it will be used by default The application icon is used as a notification icon. If the system uses the application icon as a statusbar icon in 5.0 or above, it may not display properly. The user can define an icon without shadows and gradients to replace this file. Do not change the file name.
Try: Rename your image to jpush_notification_icon and put it in the res/drawable-xxxx folder. The default icon will still be displayed after re-running.
Custom message: SDK will not put the custom message Displayed in the notification bar.
When debugging, you need to go to the log to see the custom message pushed by the server. Custom messages must be written by the developer to receive push messages and process the received messages
For detailed function descriptions of each action in the broadcast, please check the official documentation API-Receive push messages Receiver
< p> Attached is the complete MyReceiver projectContinuously updating...
- Previous article:When will the education promotion notice be issued after the senior high school entrance examination?
- Next article:Leftover women, all have pursuits, how to slowly enter her heart? The other person is too self-protective, although he is an uncle, but I am very embarrassed about this kind of thing.
- Related articles
- How long has it been since your the glory of the king experience service successfully won the number?
- How to greet leaders during the Spring Festival?
- Weibo borrowed money and paid it off in advance. Why do you still receive SMS reminders of failed deduction every month?
- Animal illustration hand-painted black and white-seeking pictures: the steps of black and white hand-painted illustration!
- The takeaway brother was hit by a car? Whose responsibility is this traffic accident?
- What are the old New Year greetings?
- Happy birthday to the children.
- Can the Agricultural Bank withdraw money from the consumer loan?
- Oktoberfest planning scheme
- What does China Bank mean by "batch charging"?