Post

Replies

Boosts

Views

Activity

Can I use an HKQueryAnchor across multiple devices?
Hello, I am currently working on an app that uses HealthKit to sync health data to a backend server that performs analysis on this data. I am keeping track of the synced data with the HKQueryAnchor I receive for each query I make. I want to address an edge case: if a user has multiple devices running the app, would it make sense to store the anchor on my backend? This would ensure that other instances of the app do not sync data that has already been synced from another device. Thank you for your help!
1
0
432
Jan ’25
StoreKit1 does not work on older iOS versions
Dear Community, I am facing a strange issue with StoreKit in a project I am working on. We have a paywall in the app where we display the IAP options that we have configured in App Store Connect, iOS 16 and iOS 15 work fine with StoreKit1 and StoreKit2 APIs however on iOS 14(StoreKit1) the products fail to fetch with the following error: Domain=SKErrorDomain Code=0 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred, NSUnderlyingError=0x600003c95bf0 {Error Domain=ASDErrorDomain Code=507 "Error decoding object" UserInfo={NSLocalizedDescription=Error decoding object, NSLocalizedFailureReason=Attempted to decode store response}}} I have integrated a little test paywall in the app to see if the behaviour would change, but it didn't. The code for it can be found here.
1
0
699
Feb ’23