In App Purchase: dynamically add non consumable items

后端 未结 4 1494
旧时难觅i
旧时难觅i 2021-02-04 06:16

I\'m developing an app where the user can purchase digital maps, charts and so on. I\'d like to wrap these in in-app-purchases. The thing is that I don\'t know beforehand how ma

4条回答
  •  一生所求
    2021-02-04 07:09

    This is an older post, but I just had the same question and found out there is now a way to dynamically provide non-consumables by hosting the product identifier list on your own server:

    Every product you sell in your app has a unique product identifier. Your app uses these product identifiers to fetch information about products from the App Store, such as pricing, and to submit payment requests when users purchase those products. Your app can either read its list of product identifiers from a file in its app bundle or fetch them from your server.

    If your app has a fixed list of products, such as an in-app purchase to remove ads or enable functionality, embed the list in the app bundle. If the list of product identifiers can change without your app needing to be updated, such as a game that supports additional levels or characters, have your app fetch the list from your server.

    There’s no runtime mechanism to fetch a list of all products configured in iTunes Connect for a particular app. You’re responsible for managing your app’s list of products and providing that information to your app. If you need to manage a large number of products, consider using the bulk XML upload/download feature in iTunes Connect.

    Apple Developer In-App Purchasing Guide

提交回复
热议问题