react-native-notify-kit / AndroidImportance
Enumeration: AndroidImportance
Defined in: packages/react-native/src/types/NotificationAndroid.ts:1291
The interface describing the importance levels of an incoming notification.
The importance level can be set directly onto a notification channel for supported devices (API Level >= 26) or directly onto the notification for devices which do not support channels.
The importance is used to both change the visual prompt of a received notification and also how it visually appears on the device.
View the Android Appearance documentation to learn more.
DEFAULT
DEFAULT:
3
Defined in: packages/react-native/src/types/NotificationAndroid.ts:1298
The default importance applied to a channel/notification.
The application small icon will show in the device statusbar. When the user pulls down the notification shade, the notification will show in it's expanded state (if applicable).
HIGH
HIGH:
4
Defined in: packages/react-native/src/types/NotificationAndroid.ts:1307
The highest importance level applied to a channel/notification.
The notifications will appear on-top of applications, allowing direct interaction without pulling down the notification shade. This level should only be used for urgent notifications, such as incoming phone calls, messages etc, which require immediate attention.
LOW
LOW:
2
Defined in: packages/react-native/src/types/NotificationAndroid.ts:1319
A low importance level applied to a channel/notification.
On Android, the application small icon will show in the device statusbar, however the notification will not alert the user (no sound or vibration). The notification will show in it's expanded state when the notification shade is pulled down.
On iOS, the notification will not display to the user or alert them. It will still be visible on the devices notification center.
MIN
MIN:
1
Defined in: packages/react-native/src/types/NotificationAndroid.ts:1331
The minimum importance level applied to a channel/notification.
The application small icon will not show up in the statusbar, or alert the user. The notification will be in a collapsed state in the notification shade and placed at the bottom of the list.
This level should be used when the notification requires no immediate attention. An example of this importance level is the Google app providing weather updates and only being visible when the user pulls the notification shade down,
NONE
NONE:
0
Defined in: packages/react-native/src/types/NotificationAndroid.ts:1337
The notification will not be shown. This has the same effect as the user disabling notifications in the application settings.
