Silent push notification not working in ios 13

旧街凉风 提交于 2019-12-13 11:13:17

问题


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":"" }


回答1:


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.




回答2:


"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.



来源:https://stackoverflow.com/questions/58111255/silent-push-notification-not-working-in-ios-13

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!