Android message notification distribution method
A message notification and notification technology, applied in the field of Android communication, can solve problems such as poor compatibility and complex logic, and achieve the effect of reducing development costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0020] The present invention will be further described below.
[0021] A method for distributing Android message notifications, comprising the steps of:
[0022] a) When the Android program starts, use the lowest priority to register an event subscriber Subscriber in the publish / subscribe event bus EventBus of the Android system, listen to the event through the event subscriber Subscriber and define it as EventReceiver. Since an event subscriber Subscriber is registered with the lowest priority in EventBus, he is always the last to listen to the event
[0023] b) When the Android program switches from the background to the foreground, the onResume function of the Android system is called back, and a Subscriber is registered with the highest priority in the onResume function and defined as EventInterceptor. Since a Subscriber is registered with the highest priority in the onResume function, he is always the first to listen to the event.
[0024] c) When the Android program is...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

