storekit – How do you begin an `SKProductsRequest` in a watchOS app, when the prevailing product identifiers from the iOS app use a fundamental bundle ID?


I’ve a watchOS app (not unbiased) that I am attempting to convey StoreKit assist to buying subscriptions. Once I make my present StoreKit supervisor for iOS goal watchOS, the productsRequest(_:didReceive:) delegate callback returns an empty response.merchandise array however I do not perceive why.

One guess as to the trigger is that once I initialize the SKProductsRequest, the merchandise identifiers I cross ones with prepended bundle identifiers, which can completely different between iOS and watchOS? The present iOS code has the format

static let subscriptionKindOne = Bundle.fundamental.bundleIdentifier!.lowercased() + ".subscriptionKindOne"
static let subscriptionKindTwo = Bundle.fundamental.bundleIdentifier!.lowercased() + ".subscriptionKindTwo"
static let subscriptionKindThree = Bundle.fundamental.bundleIdentifier!.lowercased() + ".subscriptionKindThree"

Is that this proper? In that case, what can be the right technique to begin a merchandise request on watchOS, in order that the SKProductsResponse merchandise array is populated?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles