cordova-plugin-firebase-messaging icon indicating copy to clipboard operation
cordova-plugin-firebase-messaging copied to clipboard

Add an "autoHide" option to disable automatically hiding notification

Open stephent92 opened this issue 5 years ago • 3 comments

  • Defaults to true (preserves existing functionality)
  • When set to false notifications received in the foreground will not be automatically hidden after three seconds

stephent92 avatar Sep 05 '19 14:09 stephent92

@stephent92 hm, can you describe your use case in more details?

chemerisuk avatar Sep 06 '19 08:09 chemerisuk

@chemerisuk I work on an application that sends a push notification for new/removed assignments to a user, which will usually be received when they aren't in the activity that displays these assignments. Keeping the notification beyond the three second window allows the user to check it when they're ready (not all devices display a heads up notification by default so it ends up being hidden before they even see it)

stephent92 avatar Sep 06 '19 13:09 stephent92

@stephent92

not all devices display a heads up notification by default so it ends up being hidden before they even see it

Check the latest version. Notifications for Android O+ now displayed.

chemerisuk avatar Apr 01 '20 19:04 chemerisuk