I am using FCM for my project. It has rich push notification for type. I tried to change most of the possible ways to get push from FCM . I got a regular click from FCM , not with the image.
I also check with the same APNS code using push try . I got the expected design for push notification.
Here is my APNS payload
{ "aps": { "alert": "Enter your message", "badge": 1, "sound": "default", "content-available": 1, "mutable-content": 1 }, "mediaUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/FloorGoban.JPG/1024px-FloorGoban.JPG" }
Here is FCM payload
{ "to": "dWB537Nz1GA:APA91bHIjJ5....", "data": { "message": "Offer!", "mediaUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/FloorGoban.JPG/1024px-FloorGoban.JPG" }, "notification": { "body": "Enter your message", "sound": "default", "content-available": 1, "mutable-content": 1 } }
I also need a category more about payload in FCM
I am missing some settings in the fire-base console or is it because of the payload.
ios push-notification firebase firebase-cloud-messaging apple-push-notifications
Mathi arasan
source share