-
Notifications
You must be signed in to change notification settings - Fork 11
Interactive notifications
Interactive notifications are push notifications that provide an option for end user to interact with application through button tap action. This interaction can be accomplished by using Mobile Messaging SDK predefined interactive notification categories or creating your own.
Tapping the action should trigger actionTapped
event where you can act upon the received action identifier.
Mobile Messaging SDK provides only one predefined interaction category for now, but this list will be extended in future.
Displaying of Interactive Notifications with predefined categories can be tested without any additional implementation on application side through Push API.
A = action
Category.id | A.id | A.title | A.foreground | A.authenticationRequired | A.destructive | A.moRequired |
---|---|---|---|---|---|---|
mm_accept_decline | mm_accept | Accept | true | true | false | true |
mm_decline | Decline | false | true | true | true |
Interactive notifications should be registered at the SDK initialization step by providing notificationCategories
configuration:
InfobipMobilemessaging.init(Configuration(
applicationCode: ...,
androidSettings: ...,
iosSettings: ...,
notificationCategories: [NotificationCategory( // a list of custom interactive notification categories that your application has to support
identifier: <String; a unique category string identifier>,
actions: [ NotificationAction(// a list of actions that a custom interactive notification category may consist of
identifier: <String; a unique action identifier>,
title: <String; an action title, represents a notification action button label>,
foreground: <Boolean; to bring the app to foreground or leave it in background state (or not)>,
textInputPlaceholder: <String; custom input field placeholder>,
moRequired: <Boolean; to trigger MO message sending (or not)>,
// iOS only
authenticationRequired: <Boolean; to require device to be unlocked before performing (or not)>,
destructive: <Boolean; to be marked as destructive (or not)>,
textInputActionButtonTitle: <String; custom label for a sending button>,
// Android only
icon: <String; a resource name for a special action icon>
)
...
]
)]
));
...
- Library events
- Server errors
- Users and installations
- Messages and notifications management
- Inbox
- Privacy settings
- In-app chat
- WebRTC Calls and UI
- Migration Guides
- JSON Web Token (JWT) structure and generation example