IAP: Unusually large number of "Unavailable product" and "Purchasing failed to initialize."
Hello,
I am tracing a rather hard to solve bug with Unity IAP. We are getting a very high number of those errors (approximately 400 per product per day while DAU is around 2000). Our configuration seems to be in order, and noone on my team is able to even reproduce the bug. It simply works on all the test/our devices and the configuration is fine. All the payments go through and there seem to be no issue.
I have gathered that it is not about internet connection, because bug reports on bugsnag show the devices are connected to wifi etc. It does not seem to prefer any particular country either, the distribution seems to follow our general user base ratios. Same with android version - seems to happening on all. There is nothing in particular that it seems to be correlating with except for "freeMemory" and "totalMemory" both of which seem to be around 0.5gb or less in most reports, but I'm not sure if this could be related?
Here is the error we get on GameAnalytics and Bugsnag:
Unavailable product 2000magic-2000magic UnityEngine.Purchasing.Extension.UnityUtil:Update()
we get the same for each product available, just different name , and also plenty of this:
UnityLogErrorUnityEngine.Purchasing.Extension.UnityUtil:Update():0 Purchasing failed to initialize. Reason: NoProductsAvailable
As you can see it's not much to follow up on. I am completely lost here, but it does seem to correlate with drop in our payments, so we're really worried here. The version of unity In App Purchasing is 3.0.2. It seems to have started happening loong time ago, but spiked around two months ago when we updated unity to 2020.3 (not sure if this could be related).
Looking for any kind of help here, perhaps there is a way to make unity dump more information on what exactly went wrong? The only similar cases I have found on google were all misconfigurations, but our config seems fine. And there doesn't seem to be much options to set in IAP plugin either. How could we approach this?
Your answer
![](https://koobas.hobune.stream/wayback/20220613034100im_/https://answers.unity.com/themes/thub/images/avi.jpg)