Tuesday, November 1, 2011

In App Purchase - tracking down an invalid product id

Ok, the "good" news I've actually gotten to the point where I'm receiving an invalid product id from the app store when I try to list the products available. The bad news is that, like the maddening "invalid binary" on app submission, there is no indication what soever of *why* the effing product id is invalid. Apple ... never mind.

Luckily, there is one man attempting to help this situation out. It's Troy Brant (I guess that's his name) on troybrant.net. He's made a list of possible cause of this error at

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

Here's the list:

Have you enabled In-App Purchases for your App ID?

// Uhmmm...huh? Did I? Probably, let's check out iTunesConnect. Hmmmm don't see
// anything there. Let's get back to this.


Have you checked Cleared for Sale for your product?

// Yes. that's checked.


Have you submitted (and optionally rejected) your application binary?

// Yes, it's int developer rejected status

Does your project’s .plist Bundle ID match your App ID?

// This is a confusing question. My bundle id on itunes is com.myapp.myprofile
// This matches my entry in the plist. However on iTunes the app id is some number
// also, if you look in the the binary info on itunes, you see info under entitlements
// which includes something under "keychain access" that looks like an app id
// (the com.mycompany.myapp style) but is preceded with a some big alphanumeric number.


Have you generated and installed a new provisioning profile for the new App ID?

// Yes, I'm just about positive.

Have you configured your project to code sign using this new provisioning profile?

// Yes, I'm sure I went through that process.

Are you building for iPhone OS 3.0 or above?

// Yes, 4.3.3

Are you using the full product ID when when making an SKProductRequest?


// does this include the number? But yes I think I am.

Have you waited several hours since adding your product to iTunes Connect?

// Yes, many hours.

Are your bank details active on iTunes Connect? (via Mark)

// Yes

Have you tried deleting the app from your device and reinstalling? (via Hector, S3B, Alex O, Joe, and Alberto)

This worked??? My God, it worked. Thank you, Hector, S3B, Alex O, Joe, and Alberto and of course Troy!



Is your device jailbroken? If so, you need to revert the jailbreak for IAP to work. (via oh my god, Roman, and xfze)

We'll tackle that in the next post.


No comments:

Post a Comment