AppStore review rejected the application 4 times because of the error in the IAP. When performing the test with a SandBox account the IAP works perfectly. However, if you logged in with a real user account the error occurs.
Comments:
- Before submitting the app for review, we've made changes to the IAPs and all are in the status of "Waiting for review"
- In-App Purchase is active in Xcode Capabilities
- The code works if you are logged in with a sandbox account.
- The same code generates the error if it is logged in with a real user account.
Error Log:
Purchase failure description message: APPLE_Can't connect to the iTunes Store
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Loja:OnPurchaseFailed(Product, PurchaseFailureReason)
UnityEngine.Purchasing.StoreListenerProxy:OnPurchaseFailed(Product, PurchaseFailureReason)
UnityEngine.Purchasing.PurchasingManager:OnPurchaseFailed(PurchaseFailureDescription)
UnityEngine.Purchasing.JSONStore:OnPurchaseFailed(PurchaseFailureDescription, String)
UnityEngine.Purchasing.<>c__DisplayClass35_0:<MessageCallback>b__0()
UnityEngine.Purchasing.Extension.UnityUtil:Update()
Unity Versions: 2018.2.9f1, 2018.2.8f1 and 2018.2.7f1
Unity IAP versions tested: 1.20 and 1.21
Xcode versions: 9.4 and 10.
What can I do to solve the problem?