My project work perfectly on editor and on sandbox, but in production I log zero IAP because all fail with PurchaseFailureReason.Unknown
I note it by analytics events, and no warning/error was produced by clients.
I’m using unity 5.6.1f1 and IAP 1.11.4.
Any idea to understand what happen?
Thanks you.
Is this iOS or Android? Can you provide the device logs?
Hi, it happen both on iOs and Android. Unfortunately I haven’t device log because it happen on real user and on test device all work fine.
What can I implement to trap this issue?
Thanks
You could still capture the logs for a released version of the app. Do you mean you are unable to reproduce? On Android, you could run “adb logcat” on the released version, for example.
I’m not able to reproduce the issue with all my test devices. I’m preparing a fresh new device without any test account to try to reproduce. Unfortunately appear to be some random behaviours.
@Klamore74 Sounds good, the more details that you can provide, the better. Interesting that you mentioned that it happens on both iOS and Android.
We are having exactly the same issue.
Unity 5.6.1f1, IAP plugin v1.11.4.
Sandbox purchases are successful on both Android and iOS platforms, but in production environment some users cannot make a purchase. InitiatePurchase() returns unknown reason in the failure callback (PurchaseFailureReason.Unknown). This problem occurs on user devices so we have no access to debug logs.
It would be useful to provide additional diagnostic information for better understanding of this error. For example, it can be an error message from StoreKit. PurchaseFailedEventArgs has a corresponding property, but its value is inaccessible.
I brought this up with the IAP team. They mentioned it could be due to possible incorrect async logic, perhaps IAP was not yet initialized or similar. We hoping to surface more information around the Unknown result in a future release, no ETA at this time. If you could, please open a support ticket at Unity Cloud and include your Purchase script, if possible. We can investigate further