Problem with app purchase application sandbox

I am currently developing an iOS application that is needed in an App Purchase.

As in many textbooks (for example: http://www.raywenderlich.com/2797/introduction-to-in-app-purchases ). I created a new application in iTunesConnect, uploaded the binary, and rejected it. After that, I added some apps to buy apps. In the next step, I added Storekit to my Xcode project and after that I wrote this code in my UIViewController:

- (void)buyPressed { SKProductsRequest *request= [[SKProductsRequest alloc] initWithProductIdentifiers: [NSSet setWithObjects: @"com.mycompany.appliaction_name.levelpack",nil]]; request.delegate = self; [request start]; NSLog(@"request started"); } - (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response { NSArray *products = response.products; for (int i=0; i<[products count]; i++) { SKProduct *proUpgradeProduct = [products objectAtIndex:i]; if (proUpgradeProduct) { NSLog(@"Valid product id: %@" , proUpgradeProduct.price); NSLog(@"Product title: %@" , proUpgradeProduct.localizedTitle); NSLog(@"Product description: %@" , proUpgradeProduct.localizedDescription); NSLog(@"Product price: %@" , proUpgradeProduct.price); NSLog(@"Product id: %@" , proUpgradeProduct.productIdentifier); } } for (NSString *invalidProductId in response.invalidProductIdentifiers) { NSLog(@"Invalid product id: %@" , invalidProductId); UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Apple connection error!" message:nil delegate:self cancelButtonTitle:@"CLOSE" otherButtonTitles:nil]; [myAlertView show]; [myAlertView release]; } } 

And I'm still getting information that all my applications in the application have an invalid product identifier. Today I found this: http://developer.apple.com/library/ios/#technotes/tn2259/_index.html

And one important thing: β€œImportant: DO NOT upload the development binary to iTunes Connect until the application is ready for approval by App Review. If the binary is present in iTunes Connect and is not fully functional, App Review will review the binary and most likely , rejects the development binary. Testing on App Purchase fails if you or App Review reject your latest binary in iTunes Connect. A workaround in this case is to download the binary without using App Purchase features that may be approved by App Review. After approved Binary File Resume Resume testing of binary files using Buy Application features.

So, do I need to create a new application in iTunes again or do I need to create and send my application without purchasing the application, and when the application appears in iTunes, will you receive a new version with the purchase of the application?

Thanks for answers!

+4
source share
2 answers

invalidProductIdentifiers (an array of product identifier strings that were not recognized by the Apple App Store (read-only))

Therefore, make sure that you do not use the same product identifier that was rejected

Launch Xcode after turning off your device and run Build-> Clean All Targets.

Launch Xcode-> Empty Caches, and then close and start Xcode.

After restarting Xcode and rebooting your device, reconnect it to your computer.

Create a brand new iTunes Test account on iTunesConnect.

Create and run the application from Xcode on your device using the development profile, and then try to purchase the product using the new iTunes test account.

If you submit an application and the binary is rejected for any reason, the in-app purchase may stop functioning properly in the sandbox. Apple claims that the only way to restore this is to resubmit the application binary without IAP functions and approve it first (but not necessarily released).

Look at my other related [ ANSWER ]

+2
source

At this moment, another thing helped me: making changes (any change) to the version information of the new version of the application. But I also restarted flushing the cache and rebooting.

+1
source

All Articles