iosobjective-cin-app-purchasenssetskproduct

In-App Purchase get product programmatically


I've create a UITableView to get my product on the store by array with id:

Get Product ID

+ (RageIAPHelper *)sharedInstance {
    static dispatch_once_t once;
    static RageIAPHelper * sharedInstance;
    dispatch_once(&once, ^{

        NSMutableArray *music = [[NSMutableArray alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://mywebsite.com/music/myProduct.plist"]];

        NSSet * productIdentifiers = [NSSet setWithArray:music];

        sharedInstance = [[self alloc] initWithProductIdentifiers:productIdentifiers];
    });
    return sharedInstance;
}

this is the structure inside a remote plist file:

<plist version="1.0">
<array>
  <string>com.mydomain.MyApp.Prod01</string>
    <string>com.mydomain.MyApp.Prod02</string>
    <string>com.mydomain.MyApp.Prod03</string>
    <string>com.mydomain.MyApp.Prod04</string>
    <string>com.mydomain.MyApp.Prod05</string>
    <string>com.mydomain.MyApp.Prod06</string>
</array>
</plist>

in the TableView i can get Title, Price and Description, but i know how to get the Artwork, in iTunesConnet you have to put the cover of the product, but how can get this?

enter image description here

Here is how get Price, description and name

SKProduct * product = (SKProduct *) _products[indexPath.row];
cell.textLabel.text = product.localizedTitle;
[_priceFormatter setLocale:product.priceLocal];
cell.detailTextLabel.text = [_priceFormatter stringFromNumber:product.price];

So Any know how to get the Artwork from iTuneConnect?


Solution

  • The screenshot that you add in iTunes Connect is for review purposes by Apple only. You can not retrieve that as artwork for your app.

    Quote from iTunes Connect:

    Screenshot for Review: Before you submit your In-App Purchase for review, you must upload a screenshot. This screenshot will be for review purposes only. It will not be displayed on the App Store.