Silent push notification not working in ios 13

2020-01-20 04:55发布

Silent notification is not working in iPadOS. But, in 12.4 OS it is working fine.

{ "aps": { "content-available" : "1" }, "BuildingId":13, "NotificationTypeId":214, "CustomerName":"Test", "Amount":"6778", "CustomerID":32752, "Environment":"TEST", "Title":"" }

标签: ipados
2条回答
女痞
2楼-- · 2020-01-20 05:01

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.

查看更多
虎瘦雄心在
3楼-- · 2020-01-20 05: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.

查看更多
登录 后发表回答