By default, the Android SDK intercepts links to support Deep Linking and opens them within the app. To open specific URLs in an external browser:
- Use the
setAllowedExternalHostsmethod in your Android native code (usually inApplicationorMainActivity). - Pass a list of domains (e.g.,
google.com,youtube.com) that should bypass the app and open externally.
Example:
ArrayList<String> allowedHosts = new ArrayList<>();
allowedHosts.add("play.google.com");
Pushwoosh.getInstance().setAllowedExternalHosts(allowedHosts);
On iOS, standard http/https links open in the browser (Safari) by default without extra configuration.
Comments
0 comments
Please sign in to leave a comment.