Post

Replies

Boosts

Views

Activity

Setting up StoreKit testing in Xcode
Hey all, I'm following the instructions in https://developer.apple.com/documentation/xcode/setting-up-storekit-testing-in-xcode to set up mock in-app purchases in my project. In the section Prepare to Validate Receipts in the Test Environment it says to create a StoreKit certificate and mentions using conditional compilation to use that certificate: #if DEBUG let certificate = "StoreKitTestCertificate" #else let certificate = "AppleIncRootCertificate" #endif Where would I indicate to use that certificate? I don't think it's picking it up, since my calls to Bundle.main.appStoreReceiptURL are returning nil when I'm debugging.
0
0
903
Aug ’22
Are push to start APNs tokens the same across different live activity types?
The ActivityKit API requires developers to parameterize calls to pushToStartTokenUpdates by the live activity's attributes, e.g. for await data in Activity<AdventureAttributes>.pushToStartTokenUpdates { // Send token to server. } for await data in Activity<BoringAttributes>.pushToStartTokenUpdates { // Send token to server. } At runtime, I have noticed that the token is the same for the different live activity attribute types we support in our app. Can someone confirm if this behavior is consistent? If the pushToStartToken is the same across different live activity types, it can simplify our database design 🙏🏼.
2
0
500
Jul ’24