Enumeration: IOSShowPreviewsSetting

Defined in: packages/react-native/src/types/NotificationIOS.ts:287

An enum representing the show previews notification setting for this app on the device.

Value is greater than 0 if previews are to be shown, compare against an exact value (e.g. WHEN_AUTHENTICATED) for more granular control.

Platform

ios

Enumeration Members

ALWAYS

ALWAYS: 1

Defined in: packages/react-native/src/types/NotificationIOS.ts:302

Always show previews even if the device is currently locked.

NEVER

NEVER: 0

Defined in: packages/react-native/src/types/NotificationIOS.ts:297

Never show previews.

NOT_SUPPORTED

NOT_SUPPORTED: -1

Defined in: packages/react-native/src/types/NotificationIOS.ts:292

This setting is not supported on this device. Usually this means that the iOS version required for this setting (iOS 11+) has not been met.

WHEN_AUTHENTICATED

WHEN_AUTHENTICATED: 2

Defined in: packages/react-native/src/types/NotificationIOS.ts:307

Only show previews when the device is unlocked.