Search code examples
androidpush-notificationbaidu

Baidu Push Notifications in Android


How to retrieve data from key value pair in Baidu push notifications?

which method is called in PushMessageReceiver in baidu like onHandleIntent() method in GcmListenerService in Google push notifications ?


Solution

  • Firstly, in baidu the payload is only delivered to the app's receiver only if the message sent from the baidu console/your API is of type Transparent. You can override onMessage() to get the payload.