react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

Notification is appearing in tray on Android when the app is in a background

Open alex-mironov opened this issue 6 years ago • 1 comments

Can someone please clarify if such behavior is configurable? I would like to show notifications on top of the other apps when the application is in the background.

Current behaviour - just dot in a tray: Screen Shot 2019-12-16 at 16 44 28

alex-mironov avatar Dec 16 '19 20:12 alex-mironov

For local notifications, look at the "visibility" and "importance" variables

    visibility: "private", // (optional) set notification visibility, default: private
    importance: "high", // (optional) set notification importance, default: high

https://github.com/zo0r/react-native-push-notification#local-notifications

For remote push notifications, it might depend on the service you use.

andrewtremblay-pear avatar Jan 10 '20 14:01 andrewtremblay-pear