I've created a unity app with in app purchases following this guide https://unity3d.com/learn/tutorials/topics/ads-analytics/integrating-unity-iap-your-game
It works perfectly on android but doesn't work at all on IOS and i have used the same bundle id and product ids on both stores.
The error that i get on IOS is : "InizializationFailureReasom: NoProductsAvailable."
Here are the things that i've done:
- Created an App ID on the apple developer portal with the correct capabilities (In-App Purchase)
- I have enabled the correct capabilities on the xcode project (In-App Purchase)
- I am using testflight to submit the app with a distribution certificate that appears to be valid
- I've checked the the bundle identifier and it's the same everywhere (unity project, xcode project, App ID)
- The productd ids are also correct both in the code and on the itunes connect portal
- All of the products are cleared for sale and are in the status "ready to submit"
- The administrator of my team has filled all of the tax and banking information required for in app purchase on itunesconnect
- I always uninstall the old app version before testing the new one
- We are also using sandbox users to test purchases but I have read that it shouldn't be needed anymore because we are using test flight
I suspect that it has to do with certificates/provisioning profile that I am using or the permissions of the developer account used to upload the build.
The account that I am using on apple.developer.com has the "admin" privileges.
With this account i have created a "iOS Certificate" for "production" and I have included it to the keychain.
I've also created a "iOS Provisioning Profile" for "distribution" and included it into the keychain.
I think I am using the correct provision/certificate on xcode but when I am finished building it always says the certificate is "Unknown" and the profile is "None" (i have xcode 10.1)
Is there anything that i am doing wrong? Is the status "ready to submit" good for the products? Or do i need to submit the products for review even if i am only testing?