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!
source share