Skip to content

How to open application webView on message tap

Saša Lončarević edited this page Sep 3, 2025 · 3 revisions
  • Install "cordova-plugin-inappbrowser" plugin
  • Register event handler for notification tapping in MobileMessaging
MobileMessaging.register("notificationTapped", function (message) {
  if (message.customPayload && message.customPayload.url) {
    var url = message.customPayload.url;
    cordova.InAppBrowser.open(url, "_blank", "location=yes");
  }
});
  • Now you can send push message with custom payload and "url" field through api or portal
"customPayload": {
   "url": "http://infobip.com/"
}

Security Note: For enhanced security, you can configure trusted domains to restrict which URLs can be opened in webviews. See Trusted Domains Security for more information.

Clone this wiki locally