Issue:- When getting remote notification have to show image using the imageurl in payload. In Android it’s working fine once we changed the payload. In iOS image not showing in push notification.
Issue facing on Notification Service Extension:- I have added the notification extension and added the code for modifying notification content. This configuration is working fine in native iOS app.
Added the same in the flutter iOS project but there it won’t work. While receiving push notification the extension is not getting called. Just receiving normal notification only. I have tried many scenarios to sort out this issue. Still it’s not working.
Steps i’ve followed:
- Added code to get notification permission
- Added Notification extension to the project
- Used automatically manage signing for profile configuration
- Added code to modify notification
- Added imageURL and mutable-content keys in payload
Added the project and payload screenshots here
I had the issue until I figured out I was not sending the url in
data
parameter from FCM.I made it work using these steps from this answer:
Step 1 - Add a notification service extension
Step 2 - Add Target to Podfile
Step 3 - Use Extension Helper
cURL to send push notification via Firebase/FCM