Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 657
bogen Avatar asked Apr 09 '13 10:04

bogen


People also ask

How do in-app purchases work iOS?

In-app purchases are extra content or subscriptions that you buy inside an app. Not all apps offer in-app purchases. To check if an app offers in-app purchases before you buy or download it, find it in the App Store. Then look for "In-App Purchases" near the app's price or Get button.

How do I download apps with Apple App Store data?

Change your App Store settings Allow app downloads to use cellular data: Below Cellular Data, turn on Automatic Downloads. To choose whether you want to be asked for permission for downloads over 200 MB or all apps, tap App Downloads. Automatically play app preview videos: Turn on Video Autoplay.

How do I integrate Apple in-app purchases?

First, you need to create an App ID. This will link together your app to your in-app purchaseable products. Login to the Apple Developer Center, then select Certificates, IDs & Profiles. Next, select Identifiers > App IDs, and click + in the upper right corner to create a new App ID.

Can you transfer in-app purchases to other devices?

Provided you are logged in with the same app store account that made the purchase then you can re-download the app onto a new device.


2 Answers

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.

like image 89
Chorche Avatar answered Sep 28 '22 18:09

Chorche


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.

like image 37
bio Avatar answered Sep 28 '22 20:09

bio