Skip to content

How to define specific action on notification or in app primary button tap(open url, deeplink)?

Davor Komušanac edited this page Dec 5, 2022 · 6 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 define which action to perform on notification tap or on in-app notification primary button tap you can use API (notificationOptions.primaryButtonAction parameter) or Infobip portal.

Implementation of action handling within the application

Opening of the external web content in webView

Instructions can be found by the link - How to open application WebView on message tap

Opening of the external web content in device browser

Will be opened automatically without additional coding.

Opening of particular mobile app screen over deeplink

Example can be found by the link - How to use "deeplink" to land user to a particular app page?

MM_MTMessage object

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
Clone this wiki locally