Reputation: 81
Silent notification is not working in iPad 13 OS. But, in 12.4 OS it is working fine.
This is the payload I send from my server
{
"aps": {
"content-available" : "1"
},
"BuildingId":13,
"NotificationTypeId":214,
"CustomerName":"Test",
"Amount":"6778",
"CustomerID":32752,
"Environment":"TEST",
"Title":""
}
Any wonder why this happens?
Upvotes: 1
Views: 4885
Reputation: 27
try this from postman. its work for me
{
"to":"token",
"content_available":true,
"mutable_content": true,
"data": {
"message": "Offer!",
"urlImageString":"https://res.cloudinary.com/demo/image/upload/sample.jpg",
}
}
Upvotes: 0
Reputation: 21
"apns-push-type" is Required when delivering notifications to devices running iOS 13 and later, or watchOS 6 and later. Ignored on earlier system versions. Apple document APNS Silent push notification.
Upvotes: 2
Reputation: 81
Adding "apns-push-type" header field solved the issue. Please note this is a APNS POST request header field, not a new key in push JSON.
Upvotes: 2