AndroidAction

Android Only

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.

Properties

icon

An remote http or local icon path representing the action. Newer devices may not show the icon.

icon?: undefined | string;

Recommended icon size is 24x24 px.

input

If provided, the action accepts user input.

input?: true | AndroidInput;

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

The press action interface describing what happens when an action completes.

pressAction: NotificationPressAction;

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.

title

The title of the action, e.g. "Reply", "Mark as read" etc.

title: string;

Copyright 2020 - 2021 © Invertase Limited

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License and code samples are licensed under the Apache 2.0 License.

All product names, logos, and brands are property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.