Android: image attachment preview disappears from notification list after opening it full-screen and pressing back
Describe the bug In the notification list of a subscription, notifications with an image attachment show a preview image. If I tap the preview to open the image full-screen, then press Android's back gesture/button to return to the list, the preview image for that notification is no longer shown. The notification itself (title, actions) is still there, only the image is gone. It happens for every image notification I open, including a freshly received one whose attachment has not expired on the server. Force-closing and reopening the app brings all the previews back, but opening any image again reproduces the problem.
To reproduce
- Subscribe to a topic on a self-hosted server (ntfy 2.28.0).
- Publish a message with a JPEG attachment (~360 KB, 1920×1080), with auto-download enabled in the app.
- In the app, open the topic and tap the image preview. It opens full-screen.
- Press back.
- The preview for that notification is now missing.
Expected behavior The preview stays visible after returning from the full-screen view.
Notes
- Not related to attachment expiry: it happens with a freshly received attachment that's still on the server.
- A similar bug in another Android app was caused by the image-viewer transition hiding the thumbnail and the back gesture skipping the animation that restores it. This might be the same mechanism.
Environment
- ntfy Android app: 1.25.2 (Google Play)
- Phone: Pixel 11 Pro, Android 17
- Server: self-hosted ntfy 2.28.0
Source: binwiederhier/ntfy