user529543
user529543

Reputation:

get a list of productId-s from in-app apple

I am developing and app, in this case is a newsletter with free and payed subscriptions. One of best and up to date tutorial can be found Here it is not 2 min to write 3 line of code and do 2 click and is working.

All tutorials, code examples what I got they are going to iTunnes with hardcoded productId-s in app and asking price and other info.

My questions how can I interrogate apple's servers to get the available productid for my app?

Something like:

NSString myBoundleId = getMyBoundleID(); // will return @"com.mycompany.myapp"
NSArray* productIdsInStore = getProductIdsInStore(myBoundleId); // it should return  @"com.mycompany.myapp.product1free", @"com.mycompany.myapp.product2payed1month",@"com.mycompany.myapp.productSomethingNew"

Thanks for any suggestions.

Upvotes: 0

Views: 78

Answers (1)

Cocoadelica
Cocoadelica

Reputation: 3026

Sorry this isn't possible in my experience. In a similar circumstance I've set #define lines in with the the bundle ids of subscriptions and the prefix for single editions. Then you can reference them and pattern match but you can;t fetch them from iTunes Connect in the app programatically.

Upvotes: 1

Related Questions