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.
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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With