PushService
Service to receive UnifiedPush messages (new endpoints, unregistrations, push messages, errors) from the distributors
You need to declare a service that extend PushService. This service must not be exported and must handle the action org.unifiedpush.android.connector.PUSH_EVENT
:
<service android:name=".PushServiceImpl"
android:exported="false">
<intent-filter>
<action android:name="org.unifiedpush.android.connector.PUSH_EVENT"/>
</intent-filter>
</service>
You need to use UnifiedPush to register for push notifications.
Functions
A new message is received. The message contains the decrypted content of the push message for the instance
A new endpoint is to be used for sending push messages. The new endpoint should be send to the application server, and the app should sync for missing notifications.
The registration is not possible, eg. no network, depending on the reason, you can try to register again directly.
This application is unregistered by the distributor from receiving push messages