ibm-bluemix-mobile-services / bms-clientsdk-android-push

Android Push notifications SDK for IBM Cloud Mobile Services
Apache License 2.0
10 stars 12 forks source link

Cannot handle the multiple push notification when the app is not yet start #126

Open Chiu1 opened 4 years ago

Chiu1 commented 4 years ago

Cannot receive the onReceive() callback from MFPPushNotificationListener when the application trigger by the notification centre in multiple notification case.

Background : The user kills the application and received multiple notifications. Step to reproduce :

  1. User kill the application
  2. Sending the multiple notifications to the device by the Bluemix device ID should more than 1 notification
  3. User device received the notification
  4. User click once of the notification in the Android notification centre.
  5. The application launched and push to the target page.
  6. User clicks the rest of the notification in the Android notification centre.
  7. Not change after user click the notification

Our implementation Our application is a hybrid which using the Ionic and Cordova as the base, and we have created the MFPPushNotificationListener when received the Bluemix device ID. For step 5, we get the callback from MFPPushNotificationListener and can collect the notification Id. But the step 7, there has not callback from the listener.

AnanthaKrish commented 4 years ago

@Chiu1 Hi , when you click on a notification in the notification center, the app will open and the listener will get that particular payload. This will work whenever you click on a notification (app in opened state or closed state.). I think the issue here, is the way the listener added in your app. I have some questions,

  1. is it an native android app or ionic app ?
  2. Could you please show me how the listener is configured in the your app ?

if it is possible, create an issue ticket in IBM cloud, so that I can help easily.

Chiu1 commented 4 years ago

Hi @AnanthaKrish, I may not able to create the ticket for this issue.

  1. Our app is an ionic app.
  2. Ionic App ready -> start to register the device to Bluemix through the custom plugin -> the custom plugin creating the listener when the device register success
jojustin commented 4 years ago

Customer was asked to create a support ticket and they have opened it CS1214076. We will work on this via the Service Now ticket CS1214076. There would be no more updates here.