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 project

Continuously updating...