Post

Replies

Boosts

Views

Activity

Reply to StoreKit 2 Product.products(for: productIdentifiers) coming back empty for a single user in production
I have a similar issue in a SpriteKit app under iOS 15.0. There was a crash in an iPad 8th generation with iOS 17.1.2 (21B101) where the crash log pointed to this code with an index out of bounds error: Task { do { let products = try await Product.products (for: productId_Subscription) Global_Variables.gbIsSubscribed = try await mPurchaseManager.isPurchased (products [0] ) } catch { print ( "error" ) } } I use the exact code in a half dozen other apps with no reported crashes and can't duplicate the error on my iPad in the Sandbox. Hope this helps.
Topic: App & System Services SubTopic: StoreKit Tags:
Jan ’24