[Amazon] Unity IAP 4.12.2 never calls OnInitialized or OnInitializeFailed

Hi, as the title suggests, I’m having issues with Unity IAP 4.12.2 on Amazon. I manage 8 apps published on Google, iOS and Amazon. I’ve recently had to update the package, editor version and increase my android min and target versions in order to comply with Google’s new policies, however since doing so, purchasing for all upgraded apps has broken for Amazon.

  • Unity 2022.3.42f1
  • Unity IAP 4.12.2
  • Android min 24
  • Android target 34

I can confirm that the product catalog in editor matches that on the store, the AmazonAppStore is set correctly, and that 7 products are being added via the builder and passed to UnityPurchasing.Initialize(…).

Android logcat shows the following for debug and release builds on several Amazon devices…

2024/10/17 10:25:44.383 2554 2658 Debug d In App Purchasing SDK - Sandbox Mode: PurchasingListener registered: com.unity.purchasing.amazon.AmazonPurchasing@2a88b6a
2024/10/17 10:25:44.384 2554 2658 Debug d In App Purchasing SDK - Sandbox Mode: PurchasingListener Context: com.unity3d.player.UnityPlayerActivity@f288fb0
2024/10/17 10:25:44.405 2554 2658 Debug Unity Purchasing Amazon RetrieveProducts 7
2024/10/17 10:25:44.406 2554 2658 Debug c In App Purchasing SDK - Sandbox Mode: sendGetUserDataRequest

I would expect OnInitialize(…, …) or OnIntializeFailed(…) to be called at this point, but neither do. Upon opening my in-app store page and attempting a purchase, I receive the following error…

Purchase failed because Purchasing was not initialized correctly

Any help with this is much appreciated, thank you.

BUMP - Any ideas Unity?

See if this helps:

I had issues with the aysnc inizialization for the unity services. Also I think I had some leftover properties from earlier version of android manifest that was preventing the build to complete properly even if it was building with no errors.
It seem that if something unrelated is broken everything can fall apart without error messages…
If I recall I think I found some issues by exporting the project to android studio, you may try that route to see if there is some problem in the build, since I could see some errors that was not appearing in Unity build.

Thanks for this, unfortunately I still face the same issues. My current implementation is working with Google Play and iOS, just not Amazon

BUMP - Any ideas Unity?

From my experience Amazon Sandbox mode never got worked properly with Unity IAP, so I went straight to Live App Testing. Maybe it’s worth trying.

Thanks, but as mentioned previously, the purchase system is failing/not failing for live.