-
Notifications
You must be signed in to change notification settings - Fork 12
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.
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
GeofencingDEPRECATED- Privacy settings
- In-app chat
- Migration guides
- Migration guide to version 7.9.x
- Migration guide to version 7.x.x
- Migration guide to version 6.2.x
- Migration guide to version 6.1.x
- Migration guide to version 6.x.x
- Migration guide to version 1.x.x
- Migration guide to version 2.2.x
- Migration guide to version 3.x.x
- Migration guide to version 4.x.x
- Migration guide to version 4.1.x
- Troubleshooting
- JSON Web Token (JWT) structure and generation example
- Trusted Domains Security