Sry if I digress, Shai pls feel free to ammend my words Cn1's push requires you to control this bit of logic server-side. In simple terms, keep a collection of notifications sent in a db somewhere and decide on the server whether new notifs deserve being pushed
Even if you inplemented your own push and not cn1's (not advisable), only on Android would you be able to prevent showing a notification after it has arrived. On iOS, you would still need to make the server choose sending an active or a silent notification On Thu, 11 Mar 2021, 14:45 Hannah R, <[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/d3e3d8ff-1d45-49ee-b75c-e9e2c5382bdan%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/d3e3d8ff-1d45-49ee-b75c-e9e2c5382bdan%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAG90yJ3TdtJypU4V5OhTHbJ61%3D%2BVbkuPgtwe213bV5cTXYqSmA%40mail.gmail.com.
