nativescript-local-notifications icon indicating copy to clipboard operation
nativescript-local-notifications copied to clipboard

setting `forceShowWhenInForeground` to true not showing in foreground

Open jannomeister opened this issue 6 years ago • 3 comments

it's working in the background but not in foreground.

jannomeister avatar Feb 01 '19 08:02 jannomeister

As stated in the docs, this doesn't do anything on newer devices. Are you sure this is meant to be supported?

Erudition avatar Sep 01 '19 02:09 Erudition

@Erudition the readme states this is the behaviour for iOS < 10, meaning new devices should display the notification:

Default is false. Set to true to always show the notification. Note that on iOS < 10 this is ignored (the notification is not shown), and on newer Androids it's currently ignored as well (the notification always shows, per platform default).

@EddyVerbruggen can you please confirm if this is what you meant or it's a typo in docs ?

michalMajkel avatar Oct 14 '19 15:10 michalMajkel

What I meant to say is that this flag is effectively only relevant for iOS 10 and newer.

Older iOS versions can't show the notification when the app is in the foreground. And newer Android devices always show the notification (AFAIK).

EddyVerbruggen avatar Oct 14 '19 20:10 EddyVerbruggen