On Android, if a URL is associated with your application (via Deep Linking), the operating system will default to opening your app instead of a browser or the Google Play Store.
To force specific domains to open externally, you must whitelist them in your application code using the Pushwoosh SDK method setAllowedExternalHosts.
Example (Java):
Add this code after initializing the Pushwoosh SDK:
ArrayList<String> allowedHosts = new ArrayList<>();
// Add domains that should open in a browser or external app
allowedHosts.add("play.google.com");
allowedHosts.add("example.com");
Pushwoosh.getInstance().setAllowedExternalHosts(allowedHosts);
Once the application is updated with this change, links containing these domains in your push notifications will open in the appropriate external application (e.g., Chrome or Google Play).
Comments
0 comments
Please sign in to leave a comment.