Hi Hannah, I can only speak for myself. You can schedule a local notification the moment you receive a push notification in the fg. That local notification will then be displayed. I usually schedule it for +200ms from current time
This way you can also add a custom action to that local notification Javier On Wed, 6 Jan 2021, 19:32 Hannah R, <[email protected]> wrote: > Hi everyone, > > Is there a way to implement push notifications the way so it'll be > displayed while app is running in foreground? > If no, are you planning on adding this feature? > > Thank you. > > -- > 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/035054cd-6c10-474d-881a-eb921f45bd98n%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/035054cd-6c10-474d-881a-eb921f45bd98n%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/CAG90yJ3i2m9n-OPLxzxpogOVTrJgcmd1a_pSGO_3nks0EhZYmA%40mail.gmail.com.
