let pushTokenString = String(deviceToken: self.statusActivity?.pushToken ?? Data())
extension String {
public init(deviceToken: Data) {
self = deviceToken.map { String(format: "%02x", $0) }.joined()
}
}
→ POST https://api.sandbox.push.apple.com:443/3/device/800e9f97bb01fd62cf0ded1a546a3061c3dd09501068b8bedf05a1c4e23562c90c4c04e6c751b4b261687c03b4f87941959572c021bb3546bf441056a50ac65584eb790b10f35d15d7776da7268bbea7
apns-priority:10
apns-push-type:alert
apns-topic:com.ustc.jerryliu.liveactivitiesdemo
{
"aps" : {
"event" : "update",
"content-state" : {
"homeScore" : 2,
"estimatedEndTime" : 1660559974,
"guestScore" : 2,
"halfInfo" : "next"
},
"timestamp" : 1660556374
}
}
← 400
apns-id:2E014A5B-EF1B-50AB-BA37-83A236C836F6
{
"reason" : "DeviceTokenNotForTopic"
}
the push token not work,but the normal push word well
Is there something wrong with the token?
Topic:
App & System Services
SubTopic:
General
Tags: