Invalid product ID when requesting products from Apple Store

Hi


I have created 2 Auto-Renewable Subscription and one Consumable, but when I try to request these products in my application (using Objective-C) I get an empty response and all 3 IDs are reported as invalid. The code I am using is shown below:


NSSet * productIdentifiers = [NSSet setWithObjects:

                       @"Comsumable_Subscription_4_Test",
                       @"Monthly_Access_Automatic_Renewal",
                       @"Yearly_Access_Automatic_Renewal",
                       nil];
productsRequest = [[SKProductsRequest alloc]
initWithProductIdentifiers:productIdentifiers];

productsRequest.delegate = paymentObserver;


[productsRequest start];


I have verified multiple times that the XCode project is correctly configured, a sandboxed user is created and I am signed out from iTunes with my real Apple ID on the test device.

However the bank and tax application are still pending. Is this the possible explanation for this error ?


Also, I have found this page:

http://troybrant.net/blog/2010/01/invalid-product-ids/

that advises "Have you submitted (and optionally rejected) your application binary". However this seems to be contradictory with the official Apple help that says that app binary does not need to be submitted for testing purposes.


Can someone provide the correct explanation for the error above ?


thanks

Bogdan

I think you answered your own question with:

>However the bank and tax application are still pending. Is this the possible explanation for this error ?


Yes it is. If your app worked in the sandbox without those applications approved then when your app hit the production environment you would be surprised that it didn't work. So the sandbox requires that you have banking issues resolved.


One other thing - to be sure you hit the sandbox environment be sure to delete old builds of your app before reinstalling from Xcode. If you reinstall from Xcode over a production version of the app then the Xcode version remains 'signed' by the then deleted, but not fully erased, production version.

> I have found this page


That page is more than 8 yrs. old, which in this line of work is eons. Saying it seems contradictory, when you're using current tools, is being generous.


It's good you're curious enough to do your own research before asking here...keep it up, but pls. use caution and do your best to refer to info that reflects your IDE. Things change at a very rapid pace.


Otherwise, PBK is your best friend here for this topic.


Good luck.

Invalid product ID when requesting products from Apple Store
 
 
Q