By default YouTube links in Pushwoosh notifications open the home screen of your app instead of the browser/YouTube app.
This behavior occurs because youtube.com is not included in the allowedExternalHosts list.
To resolve this you need to explicitly allow YouTube links to open externally by adding the following code to your Android integration:
Pushwoosh.getInstance().registerForPushNotifications()
// Add YouTube domains to allowed external hosts
val allowedHosts = ArrayList<String>()
allowedHosts.add("youtube.com")
Pushwoosh.getInstance().setAllowedExternalHosts(allowedHosts)
Comments
0 comments
Please sign in to leave a comment.