I’m utilizing a category that targets each my iOS in addition to my watchOS goal – so each use the identical code.

If I add my code to TestFlight, my iPhone is ready to fetch the merchandise simply superb. Nonetheless, with my Apple Watch, the method appears to stall.

I’ve applied a log stream in order that I can collect log output in TestFlight builds (the place Xcode is just not hooked up). That is my code:

do {
    log("1")    // reaches assertion on iPhone, reaches assertion on Watch

    let storeProducts = attempt await Product.merchandise(for: productIDs)

    log("2")    // reaches assertion on iPhone, DOES NOT attain assertion on Watch
    
} catch {
    log("3")    // doesn't get known as on Watch both
}

Now until I misread the log statements, it seems to be like attempt await Product.merchandise(for: productIDs) neither returns, nor throws. I’ve stored open my ViewController for minutes however there is no such thing as a progress.

My state of affairs proper now could be the next:

I’ve an app reside that employs SwiftyStoreKit. This nevertheless breaks on iOS 16 so we at the moment are transferring over to StoreKit (2) for iOS 16 and watchOS 9 units (older variations will keep on SwiftyStoreKit). Publishing a launch with out verifying in TestFlight may be very dangerous so I hope somebody can affirm that this is a matter with StoreKit 2 that TestFlight variations can not fetch merchandise in watchOS. Nonetheless I can not discover any data from Apple or in any discussion board on this.

We have now additionally tried implementing the purchases by way of RevenueCat which additionally threw some bizarre errors (like this one https://group.revenuecat.com/sdks-51/receipt-is-missing-when-trying-to-purchase-via-testflight-1491) particularly on watchOS. The Sandbox and TestFlight environments are identified to be very buggy nevertheless it’s an enormous threat now to push an replace with out having the ability to affirm that it truly works not less than as soon as.

Weirdly sufficient, with SwiftyStoreKit I can nonetheless see all my purchases in TestFlight which makes me assume that the problem is on StoreKit 2’s aspect – as SwiftyStoreKit nonetheless makes use of StoreKit 1 however with out every other data on this that is purely hypothesis. So I am hoping somebody has bumped into the identical subject and is aware of greater than I do.

By admin

Leave a Reply

Your email address will not be published.