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?
Post
Replies
Boosts
Views
Activity
https://developer.apple.com/documentation/activitykit/displaying-live-data-on-the-lock-screen-with-live-activities
Thank you!
But I wonder what is customer mean?SignedTransactions include that appleid‘s user bought in other apps?
The path params originalTransactionId I put in request URL is created in my app’s purchased
Which Api did you try to find out?
If it is get transactions history you can find a key called "environment"
https://developer.apple.com/documentation/appstoreserverapi/historyresponse
If it is look up orderid or refund API I think you can find out user for your system.
hi even i copy your code to my contentView class , share sheet can not show any suggestion contact item.
What am i missed?
Yes I have implement placeholder(with: Context) func
I checked Xcode Orangizer extension crash and I found a crash with widget
Thank you for your reply @ CPSoftware
But My need is to show this text dynamic changed by system like Text("\(now, style: .timer) ago")
Using your func just show 2m ago will not change by increasing