setAllowedExternalHosts
Sets the list of allowed external hosts for secure push content.
This method configures which external hosts are allowed to serve content referenced in push notifications (such as images). This is a security feature to prevent unauthorized content from being loaded. Only hosts in this list will be allowed. Example:
ArrayList<String> allowedHosts = new ArrayList<>();
allowedHosts.add("cdn.mycompany.com");
allowedHosts.add("images.example.com");
Pushwoosh.getInstance().setAllowedExternalHosts(allowedHosts);
Content copied to clipboard
Parameters
allowedExternalHosts
list of allowed external host names