Android's default security policy blocks non-secure (HTTP) content in apps, which includes images or GIFs linked in push notifications. If the URLs for your media start with http://
instead of https://
, they will likely not be displayed, and an error related to 'Cleartext HTTP traffic not permitted' might occur internally within the app.
To resolve this:
1. Ensure all URLs for images and GIFs used in your push notifications are secure and start with https://
.
2. Update your push notification content with these HTTPS URLs.
For example, you should change a URL like http://yourdomain.com/image.png
to https://yourdomain.com/image.png
.
Using HTTPS is crucial for media to display correctly in Android push notifications. If issues persist after making this change, further checks on your app's notification handling implementation for rich media might be needed.
Comments
0 comments
Please sign in to leave a comment.