The behavior for handling external links differs between Android and iOS.
On Android
By default, for security reasons, external links in push notifications or in-app messages will open the home screen of your app instead of an external browser.
To allow specific external websites to open in a browser, you must add their domains to the allowedExternalHosts list in your Android application's code. This requires assistance from your development team.
Here is an example of how to add a domain (e.g., youtube.com) to the allowed list:
Pushwoosh.getInstance().registerForPushNotifications()
// Add domains to the allowed external hosts list
val allowedHosts = ArrayList<String>()
allowedHosts.add("youtube.com")
Pushwoosh.getInstance().setAllowedExternalHosts(allowedHosts)
On iOS
The iOS operating system handles external links by default. All external URLs will automatically open in the Safari browser without any additional configuration required in your app.
Comments
0 comments
Please sign in to leave a comment.