Interface: InitialNotification

Defined in: packages/react-native/src/types/Notification.ts:97

An interface representing a notification & action that launched the current app / or Android activity.

View the App open events documentation to learn more.

This interface is returned from getInitialNotification when an initial notification is available.

Deprecated for iOS in favour of onForegroundEvent

Platform

android

Properties

input?

optional input: string

Defined in: packages/react-native/src/types/Notification.ts:118

The input from a notification action.

The input detail is available when the EventType is:

Platform

android API Level >= 20

notification

notification: Notification

Defined in: packages/react-native/src/types/Notification.ts:101

The notification which the user interacted with, which caused the application to open.

pressAction

pressAction: NotificationPressAction

Defined in: packages/react-native/src/types/Notification.ts:106

The press action which the user interacted with, on the notification, which caused the application to open.