Adding in-app products question

Hello,

For Android do I have to upload the APK file before I can add products to sell in-app? I went to my developer console for google play and I believe this is what it meant. So do I upload a version that is not completed just so I can add products? Kind of backwards to me. I want to add products and then test with the IAP Badger plugin which says it works while still on my pc.

Thanks,

Warren

Check out docs: Google Play Setup

You will have to go into test mode ( for the IAP badger) for it to work on your pc, the google play api purchase plugin only works on android.

You have to upload a APK (this can be an alpha or beta version) before you can create your IAP codes and before you can get your Google ID (wrong name for this) for use in config.lua.

That said, you can test IAP badger w/o IAP codes.  Just make them up for now and replace them with the real deal later.

For Apple do I have to upload a test version with them? I was able to go to the details screen and then add IAP products. I read some other pages about this and the steps but I still can’t tell if a version has to be uploaded or not.

If I recall correctly, for testing you do not need to upload a build to iTunes. 

However (and this is very important) when you are ready to release your app and you submit it to Apple, you will need to submit your IAP products at the same time. They need to be approved, just as the app itself does.  

To submit them, on the app details page on iTunes Connect there should be an IAP section near the bottom (below your screenshots etc). Just tick all the IAP you want to submit for review, and then submit your app when ready. I think the same applies to any Game Centre achievements etc, but it’s been a while so I could be wrong about that.

If you fail to submit the IAP they will not appear in your released app, so make sure you do it. If you wanted to play it safe, you could submit a test build early and submit the IAP at the same time, but make sure to set the Version Release to “Manually release this version” so that it does not go live. You only need to get IAP approved once (assuming you don’t change them), so they’ll be good to go from that point. Then just resubmit the build itself when you are ready to release.

Thanks Alan! I did find the IAP products section in iTunes and I actually added one of the products before uploading any version of the app. I assume that is okay since it let me. The products I am adding are points such as 5K Points and others. When I test the app itself in the simulator IAP Badger only test local I believe. But when I upload a version and test as a development version I assume it will use the products I submitted even if they have not yet been approved? It just seems like you should be able to test your app and the products before you submit anything to Apple. Then submit when you are happy with all of it.

This is the only part holding up my game at the moment.

Thanks!

Warren

Just to be clear, I wasn’t referring to the act of creating the IAP items. In addition to setting them up, you also have to submit them for approval. See this example:

https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnectInAppPurchase_Guide/Chapters/SubmittingInAppPurchases.html

When testing I don’t think you need to submit anything at all, but you may need to be logged into iTunes using a test account (it’s been a while so I could be wrong on that).

Check out docs: Google Play Setup

You will have to go into test mode ( for the IAP badger) for it to work on your pc, the google play api purchase plugin only works on android.

You have to upload a APK (this can be an alpha or beta version) before you can create your IAP codes and before you can get your Google ID (wrong name for this) for use in config.lua.

That said, you can test IAP badger w/o IAP codes.  Just make them up for now and replace them with the real deal later.

For Apple do I have to upload a test version with them? I was able to go to the details screen and then add IAP products. I read some other pages about this and the steps but I still can’t tell if a version has to be uploaded or not.

If I recall correctly, for testing you do not need to upload a build to iTunes. 

However (and this is very important) when you are ready to release your app and you submit it to Apple, you will need to submit your IAP products at the same time. They need to be approved, just as the app itself does.  

To submit them, on the app details page on iTunes Connect there should be an IAP section near the bottom (below your screenshots etc). Just tick all the IAP you want to submit for review, and then submit your app when ready. I think the same applies to any Game Centre achievements etc, but it’s been a while so I could be wrong about that.

If you fail to submit the IAP they will not appear in your released app, so make sure you do it. If you wanted to play it safe, you could submit a test build early and submit the IAP at the same time, but make sure to set the Version Release to “Manually release this version” so that it does not go live. You only need to get IAP approved once (assuming you don’t change them), so they’ll be good to go from that point. Then just resubmit the build itself when you are ready to release.

Thanks Alan! I did find the IAP products section in iTunes and I actually added one of the products before uploading any version of the app. I assume that is okay since it let me. The products I am adding are points such as 5K Points and others. When I test the app itself in the simulator IAP Badger only test local I believe. But when I upload a version and test as a development version I assume it will use the products I submitted even if they have not yet been approved? It just seems like you should be able to test your app and the products before you submit anything to Apple. Then submit when you are happy with all of it.

This is the only part holding up my game at the moment.

Thanks!

Warren

Just to be clear, I wasn’t referring to the act of creating the IAP items. In addition to setting them up, you also have to submit them for approval. See this example:

https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnectInAppPurchase_Guide/Chapters/SubmittingInAppPurchases.html

When testing I don’t think you need to submit anything at all, but you may need to be logged into iTunes using a test account (it’s been a while so I could be wrong on that).