@notifee/react-native / AndroidAction
Interface: AndroidAction
The interface used to describe a notification quick action for Android.
Notification actions allow users to interact with notifications, allowing you to handle events within your application. When an action completes (e.g. pressing an action, or filling out an input box) an event is sent.
View the Quick Actions documentation to learn more.
icon?
optional
icon:string
An remote http or local icon path representing the action. Newer devices may not show the icon.
Recommended icon size is 24x24 px.
input?
optional
input:true
|AndroidInput
If provided, the action accepts user input.
If true
, the user will be able to provide free text input when the action is pressed. This
property can be further configured for advanced inputs.
View the Action Input documentation to learn more.
pressAction
pressAction:
NotificationPressAction
The press action interface describing what happens when an action completes.
Note; unlike the pressAction
in the notification body, an action does not need to open the application
and can perform background tasks. See the AndroidPressAction reference
or Quick Actions documentation to learn more.