SKProduct Swift - Where does the information come from?

183 Views Asked by At

does the "SKProductsRequest" for in-app purchases go to the internet (App Store) and collect the information or does it get the information of the product price and so on directly from the installed app on the device? Especially the following code in viewDidLoad()

requestIAP = SKProductsRequest(productIdentifiers: Set([inAppIdentifierForProVersion]))
requestIAP.delegate = self
requestIAP.start()
2

There are 2 best solutions below

0
FitzChill On

Based on the Apple documentation for the start() function it does launch a network request to the app store.

https://developer.apple.com/documentation/storekit/skrequest

But it seems that the response is stored locally as I can force close my app. Go to plane mode and display the price items again when I relaunch my app.

1
Marc On

Thx, but after some minutes it will "lose" the stored information, so you need to do the request again.