While creating NotificationCompat.BigPictureStyle
notifications in Android, we have noticed that many times, the BigPicture comes out to be blank/white.
Salient features of this problem are:
- Happens MOSTLY on Android 6.0 devices, while the same notification is rendered correctly on pre-6.0 devices. (Have seen this problem occurring once or twice on pre-6.0 devices as well though)
- When I debug it, the debugger states that the Bitmap is invalid (Displays the images correctly for images that load on Marshmallow devices)
- One issue that we were able to find with our images was that some of these had an alpha channel. Once we fixed this, the number of blank images reduced (However this number is still not zero).
I'll edit this as and when I find more details about the problem. Meanwhile, if there is a guideline for setting this image (such as there should not be any alpha channel etc.), then please share here.