0
votes

I am able to implement Push Notificatios in my Worklight project with the Android environment; it all works well and notifications are received, however my issue is that when a notification is received in the device, then it removes the previous notification from notification bar - replaces it.

Android device used: 2.3, 3.0. 4.0, 4.1 (same issue in all).

Worklight: v6.0.0.20130614

2
Can you please paste your code.Siddharth_Vyas
You mean to say that you receive one notification and that notification is replaced by new notification?Siddharth_Vyas
A quick tip: use different ID for each notification.Andrew T.
i have the issue in Worklight for andorid device, i know how to handle it in core Android Platform.SRam
@sram, what is the exact Worklight version? Look at the About window in Eclipse and provide the build version.Idan Adar

2 Answers

1
votes

In Worklight, this is by design - each notification received uses the same notification ID, thus replacing the existing one in the notification bar. Which explains why you only see 1 notification at a time.

The code that handles this is packaged within the Worklight Android .jar file provided in the project and cannot be altered.

If you are an IBM customer, I suggest you to get in touch with your IBM contact person.

0
votes

Instead of updating your notification with the same id, create a new one with a unique id.