Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS In-App purchase works in development but not in production

I've just released my first app with iAP. It always worked fine in development, but in production it crashes when I try to make a purchase.

It seems like the app dosn't download my "product" in production mode. Have anyone else had similar problems, what did you do to fix it?

like image 238
Anders Avatar asked Sep 24 '13 07:09

Anders


3 Answers

Recently I had submitted my app and it has a same issue. After spent some time on google I found that sometimes application available on store early and apple's production server takes time in updating products so wait for 24-36 hours. It will be automatically fixed.

Edit
Jagdeep has pointed towards a good point. Check status of your products it should be in "Approved" state. In my case it was in approved status.

  • When you have created product you have checked the option "Clear for Sale"?

From Documentation :
Clear for Sale indicates whether your In-App Purchase is cleared for sale or not. If this box is unchecked, your In-App Purchase will not be available for purchase from within the app. Note that if you set Cleared for Sale to No, all settings for the In-App Purchase will still be available to edit in iTunes Connect, and you can change Cleared for Sale to Yes at a later date.

like image 151
Iducool Avatar answered Nov 02 '22 01:11

Iducool


It takes a little time even when everything is approved.

  • My binary was approved.
  • My In-App Purchase (IAP) was approved.
  • My In-App Purchase was Cleared For Sale.
  • Testing the purchase in development with a sandbox iTunes Account worked great.
  • Purchasing in production with a real or sandbox iTunes Account would fail.

I didn't have to wait long, something like a couple hours and it just started working.

Now, my binary and my In-App Purhcase were approved at the same time and almost immediately after they were both approved, I released the app version to the store.

I'm not positive, but what I probably should have done was wait a couple hours before releasing that new app version and give the In-App Purchase a chance to "register" or "propagate" in the Production App Store.

Just a recommendation for others.

like image 20
Joshua Pinter Avatar answered Nov 02 '22 00:11

Joshua Pinter


Check your status in itunesConnect site -> Manage your purchase. Make sure your in-app-Purchase has been passed from review.

like image 39
Jagdeep Avatar answered Nov 01 '22 23:11

Jagdeep