You have two options I can think of:
- Keep track of the push messages sent and avoid sending a duplicate. 
- Send hidden pushes and use local notification to update the push status

Notice that your pushes are collapsed together so they shouldn't be too 
noisy for the user even if you have some duplicates.

On Thursday, March 11, 2021 at 4:45:06 PM UTC+2 [email protected] wrote:

> Thank you for your response.
>
> However, this raises another question:
> How to prevent bombing user with many push notifications? Or with the same 
> notifications? I don't want user to see 10 notifications from the same app 
> in their notification drawer, especially if the messages are the same. 
>
> On Wednesday, March 10, 2021 at 10:25:26 PM UTC-5 Shai Almog wrote:
>
>> Hi,
>> at the moment we don't have that capability since it's platform specific.
>>
>> On Thursday, March 11, 2021 at 12:02:12 AM UTC+2 [email protected] 
>> wrote:
>>
>>> Hi,
>>>
>>> Is there a way to update a push notification message in cn1? (See the 
>>> reference - 
>>> https://developer.android.com/training/notify-user/build-notification#Updating
>>> )
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ebfb2719-34f8-47fd-82e6-a3cc06daa571n%40googlegroups.com.

Reply via email to