bogen
bogen

Reputation: 10432

When using Apple Hosted Content with In app purchase on iOS, is it possible to download the content before buying?

I am working on an app that is going to use IAP with Apple hosted content. I want to show images of the content to the people that are downloading it before they buy. Is it possible for the app to download the content from Apples server before user has purchased it? That way i could load images from that package and show them. And when user buys it, the app shows the rest of the content in the package.

Upvotes: 6

Views: 1400

Answers (2)

sven7
sven7

Reputation: 748

You cannot download the hosted content before it is purchased. Best option is to display a preview of the product, either bundled in your app or downloaded from your own server.

Upvotes: 4

Chorche
Chorche

Reputation: 403

To start a download you must use startDownloads: on SKPaymnetQueue, and for that you need the user to click on the buy button, so it's not possible to start a download from itunes hosted content without buying. In addition even if it's possible the full content would be downloaded, so you will need code to unlock it depending on the purchase and your app will consume user resources for nothing.

From the documentation, I understand that you cannot reach the startDonwloads: without validating the purchase.

I think the best aproach would be providing the preview from your own server.

Upvotes: 6

Related Questions