Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS 7 Beta - In App testing not working
    text
    copied!<p>is it possible that Sandbox for In App purchases testing does not work for iOS because it is in beta? It is working on iOS 6 simulator and device, but not working on iOS 7 simulator or device, keep getting cannot connect to iTunes.</p> <p>Code:</p> <pre><code>- (void)purchaseRemoveAds { NSLog(@"ITEMS :%@", [IAPShare sharedHelper].iap.productIdentifiers); [[IAPShare sharedHelper].iap requestProductsWithCompletion:^(SKProductsRequest* request,SKProductsResponse* response) { if(response &gt; 0 ) { NSLog(@"PRODUCTS: %@", [IAPShare sharedHelper].iap.products); if ([[IAPShare sharedHelper].iap.products count] != 0) { SKProduct* product =[[IAPShare sharedHelper].iap.products objectAtIndex:0]; [[IAPShare sharedHelper].iap buyProduct:product onCompletion:^(SKPaymentTransaction* trans){ if(trans.error) { NSLog(@"Fail %@",[trans.error localizedDescription]); } else if(trans.transactionState == SKPaymentTransactionStatePurchased) { [[IAPShare sharedHelper].iap provideContent:@"RemoveAds"]; NSLog(@"SUCCESS %@",response); NSLog(@"Purchases %@",[IAPShare sharedHelper].iap.purchasedProducts); [bannerView_ removeFromSuperview]; UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Success!" message:[NSString stringWithFormat:@"You have successfully purchased %@", product.localizedTitle] delegate:nil cancelButtonTitle:@"OK!" otherButtonTitles: nil]; [alert show]; } else if(trans.transactionState == SKPaymentTransactionStateFailed) { NSLog(@"Fail"); } }];//end of buy product } } }]; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload