Instantly share code, notes, and snippets.

Embed
What would you like to do?
App Store return product information (Obj-C)
@property (nonatomic, strong) NSMutableArray<SKProduct *> *verifiedProducts;
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response{
self.verifiedProducts = response.products
// print invalid products and valid products
for (NSString *identifier in response.invalidProductIdentifiers) {
NSLog(@"invalid identifier: %@", identifier);
}
for (NSString *invalid_identifier in response.products) {
NSLog(@"valid identifier: %@", invalid_identifier);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment