StoreKit to return all product IDs

后端 未结 3 1709
轻奢々
轻奢々 2021-02-20 04:16

This question is a little different from the others I\'ve found here. My In App StoreKit is working, I can list products in my store successfully. I\'ve gone through the Apple

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-20 04:47

    You unfortunately have to provide all of the ID's for products you'd like to get information for as far as I could see.

    One way to handle this is to store your product ID's on a remote server and then to make a request to the server to pull down the current set of ID's when loading the store.

    That would allow you to add or remove products from the itunes side of things and not have to submit any binary updates to your app.

    I think you could probably find a happy medium by caching the list of products in the iphone app and then just making a quick request to see if there had been any changes so you wouldn't even have to get the full list each time.

    This could be done using a simple http API on the server side or even just an xml file you pull down.

    From the In App purchase Programming Guide

    Apple recommends you retrieve product identifiers from your server, rather than including them in a property list. This gives you the flexibility to add new products without updating your application.

提交回复
热议问题