Do you have an invalid product ID that won’t go away? Good thing the StoreKit API provides error codes and detailed error information explaining why the ID is invalid.
Oh, what’s that? There are no error codes or error details of any kind when you have an invalid product ID, you say? Bah, silly me.
To save you the pain of exhaustively searching the web for the cause of your error, here is a checklist of everything I have stumbled across that can cause an invalid product ID. Make sure you can answer “Yes” to each of these questions:
- Have you enabled In-App Purchases for your App ID?
- Have you checked Cleared for Sale for your product?
- Have you submitted (and optionally rejected) your application binary?
- Does your project’s .plist Bundle ID match your App ID?
- Have you generated and installed a new provisioning profile for the new App ID?
- Have you configured your project to code sign using this new provisioning profile?
- Are you building for iPhone OS 3.0 or above?
- Are you using the full product ID when when making an
SKProductRequest? - Have you waited several hours since adding your product to iTunes Connect?
- Are your bank details active on iTunes Connect? (via Mark)
- Have you tried deleting the app from your device and reinstalling? (via Hector, S3B, Alex O, Joe, and Alberto)
- Is your device jailbroken? If so, you need to revert the jailbreak for IAP to work. (via oh my god, Roman, and xfze)
If you answered “No” to any one of these questions, there’s your problem.
If you answered “Yes” for each of these questions and you still have an invalid product ID, then you have a problem I haven’t seen before. Check out the links in the next section, several of which are Developer Forum posts that were especially helpful in my hunt for debugging invalid product IDs.
Resources for Debugging an Invalid Product
Here are the docs and resources I used to debug invalid product IDs:
- Official In App Purchase Programming Guide
- Official iTunes Connect Developer Guide (In App Purchases starting on page 52)
- Developer Forums – Best thread on debugging in-app purchases
- Developer Forums – Invalid product ID with solution
- Developer Forums – Invalid product ID with solution
- Developer Forums – Invalid product ID with solution
- Developer Forums – “in app purchase invalid” search results
- Apple StoreKit support forums – Invalid product ID with several solutions
If your solution for invalid product IDs wasn’t mentioned in the checklist above, please leave a comment detailing how you fixed the problem so I can keep the checklist up to date.
I meant in the ID field of the product!
THANKYOU!!!
I needed to remove the App off my device and reinstall from scratch.
You saved me hours of head scratching!!
Cheers
You are a life saver. After going through it over and over again..I finally got In-App purchases working..It’s not even my first attempt at it because I did it for a previous App!
thanks for your summarizing. and sharing. Great.
[...] Are your bank details active on iTunes Connect? (via Mark) [...]
You are a live saver, seems uploading the binary did the trick, (worked in the ios 5 simulator, but not device)
where i can see my bank details on iTunes? and if they are not active then where i should submit them?
com.myco.appname.product did not work, only needed the ‘product’ bit.
> Have you tried deleting the app from your device and reinstalling?
No but after I did it began to work. Thank you so much for the list as I thought I had it all covered.
Same as Kvaran, deleted from device and all works fine. DUDE YOUR AMAZING FOR DOING THIS LIST, SAVED SO MUCH TROUBLE!!
:D:D:D
cancer chemotherapy combination drugs…
Buy_generic meds…
rebound phenomenon during gradual clonidine withdrawal…
Buy_drugs without prescription…
what causes constant itching…
Buy_generic pills…
kids weight gain…
Buy_generic drugs…
washington university marfan losartan study…
Buy_drugs without prescription…
clinical trial ediary data…
Buy_now it…
100 mile diet store…
Buy_generic meds…
juliet’s on the spot acne treatment…
Buy_drugs without prescription…
list of anti anxiety drugs…
Buy_generic meds…
pain relief until root canal…
Buy_generic meds…
glucose to insulin ratio metabolic syndrome…
Buy_drugs without prescription…
neurontin and mood lability…
Buy_generic meds…
menses while on birth control pills…
Buy_generic drugs…
Jailbreak was my problem..
Excellent article though.. made sure i was covering up other aspects.
Much thanks… you definitely saved many people a lot of time and frustration.
interactions with azithromycin and astragalus…
Buy_it now…
[...] If you haven’t already, take a look at Troy Brandt’s exhaustive list of invalid product ID issues. [...]
dog retching vomiting weight loss…
Buy_generic drugs…
does hiv always lead to aids…
Buy_generic meds…
space herpes…
Buy_now…
can iodine help thyroid function…
Buy_generic drugs…
breven medication for add…
Buy_generic drugs…
I stumbled on another thing that can seem obvious, but you need to add your in app products to your application details (in itunes connect) before submitting it.
Thanks for this very usefull checklist.
information about treatment for leg edema…
Buy_generic drugs…
remeron dreams…
Buy_it now…
fruity taste and diabetes…
Buy_it now…
dogs to detect cancer…
Buy_generic drugs…
side@effects.of.protonix.after.it.has.been.stopped” rel=”nofollow”>……
Buynow it…