Shai, Ok, I hear your point.

Toastbar works great. Thank you. 

On Wednesday, January 6, 2021 at 10:04:36 PM UTC-5 Shai Almog wrote:

> Push notification works in the foreground just fine. The push() method 
> callback is invoked when you're in the foreground but we don't add the 
> notification to the pull down as this behavior isn't consistent across 
> platforms. 
>
> I would suggest showing a toastbar message when a push method arrives and 
> the app is in the foreground. That would reduce clutter in the hidden 
> pulldown UI and would increase user interaction.
>
> On Wednesday, January 6, 2021 at 11:26:24 PM UTC+2 [email protected] 
> wrote:
>
>> Is LocalNotification not supported on simulator?  Or it cannot be 
>> displayed on application's foreground too? 
>> Because I wrote a code but the simulator is not displaying local 
>> notifications in foreground. It shows only if app is paused, same as push 
>> notifications. 
>>
>> On Wednesday, January 6, 2021 at 2:48:02 PM UTC-5 [email protected] 
>> wrote:
>>
>>> You're welcome
>>>
>>> On Wed, 6 Jan 2021, 19:43 Hannah R, <[email protected]> wrote:
>>>
>>>> Javier, 
>>>>
>>>> That sounds like a good solution. Thank you. 
>>>>
>>>> On Wed, Jan 6, 2021 at 2:37 PM Marisole Aromatherapy <
>>>> [email protected]> wrote:
>>>>
>>>>> 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 a topic in the 
>>>>> Google Groups "CodenameOne Discussions" group.
>>>>> To unsubscribe from this topic, visit 
>>>>> https://groups.google.com/d/topic/codenameone-discussions/NwAfraohBW8/unsubscribe
>>>>> .
>>>>> To unsubscribe from this group and all its topics, 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
>>>>>  
>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/CAG90yJ3i2m9n-OPLxzxpogOVTrJgcmd1a_pSGO_3nks0EhZYmA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> -- 
>>>> Regards,
>>>>
>>>> Hannah Ryzhuk
>>>>
>>>> -- 
>>>> 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/CAOS_rX1BbS0g3mismbZuG1B6Lrsj30UdSAjzcmB8M%2BTnaRevbw%40mail.gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/codenameone-discussions/CAOS_rX1BbS0g3mismbZuG1B6Lrsj30UdSAjzcmB8M%2BTnaRevbw%40mail.gmail.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/0901fedf-540b-4986-8bba-269445965baan%40googlegroups.com.

Reply via email to