-
Notifications
You must be signed in to change notification settings - Fork 21
How to define specific action on notification or in app primary button tap(open url, deeplink)?
Alexander Boldyrev edited this page Oct 31, 2024
·
4 revisions
Supported on iOS since version 8.2.1.
Available actions:
- Opening of the external web content in webView
- Opening of the external web content in device browser
- Opening of particular mobile app screen over deeplink
To set up action via Broadcast or Flow choose "Mobile Push" channel and specify action button properties:
- Action: Choose from the list
- URL: Provide required URL or deeplink
Also, you can set up action for push or Mirror push notification using API by specifying notificationOptions.primaryButtonAction
Instructions can be found by the link - How to open application WebView on message tap
Will be opened automatically without additional coding.
Example can be found by the link - How to use "deeplink" to land user to a particular app page?
MM_MTMessage
object will contain following fields, depending on action, which is used.
let webViewUrl = message.webViewUrl // URL, url to display in webView
let browserUrl = message.browserUrl // URL, url to open in browser
let deeplink = message.deeplink // URL, deeplink url
If you have any questions or suggestions, feel free to send an email to [email protected] or create an issue.
- Library events
- Server errors
- Users and installations
- Messages and notifications management
- Inbox
Geofencing serviceDEPRECATED- Privacy settings
- In-app chat
- WebRTC Calls and UI