I have integrated a Notification Service Extension in my app to handle rich push notifications with images. The issue occurs on iOS 15 and iOS 18 devices—while the text content of the notification shows, the image is not displayed. However, the rich push notification works fine on other iOS versions (e.g. iOS 16, iOS 17)
I’ve tried the following steps:
- Verified App Groups are the same for both the main app and the extension.
- Checked the "mutable-content" flag in the notification payload.
- Added a print statement in the NotificationService.swift to check if it’s running. It doesn’t appear in the Xcode logs.
- I’ve tried using Attach to Process in Xcode, but nothing happens.
- The app is installed on a real device, and I’m testing with push notifications when the app is in the background.