Re: [codenameone-discussions] Push notification while app is open in foreground

2021-05-25 Thread Shai Almog
We don't have a way to distinguish that and I'm not sure we have a way of making that distinction. You can check if start() was invoked recently by saving the time it was invoked then avoid the toastbar since the app just loaded. It's a bit of a hack but I'm not sure if there's a better way.

Re: [codenameone-discussions] Push notification while app is open in foreground

2021-05-25 Thread Hannah R
I faced another question about implementing Toastbar for the push notification on iOS. The problem is that when the push() method is called, the display is always in foreground. Therefore, when you receive the push notification while the app is in background, and then click the notification -