In App Purchase: dynamically add non consumable items

后端 未结 4 1495
旧时难觅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:08

    I can't completely spell it out for you with code but you can handle this problem two ways:

    Currency. You do not sell non-consumable items such as maps. You sell currency. With that currency you purchase maps. The maps you feed dynamically whenever the user hits your store front. That way you only need to track a few purchase options.

    The other option: The company I worked for initially set this up very simply. Our app would launch and we would reach out for a php script that handed us back the app store IDs that we had sitting in it. At that point we'd verify them and use the valid returns. This option allowed us to change our in app purchases through iTunes Connect and then in the script and everything was great.

提交回复
热议问题