I’m trying to handle an issue with IAP Purchasing on android.
If I start the purchase flow on Android, I’ll get the native pop up for purchasing through Google on Android and would just have to confirm the purchase. But if I press the Home Button (which would minimize the app to the app tray), and then I open it again using the App Icon, then purchasing will no longer work.
If I try to open the app again from the app tray instead, then the native window is still there and I can cancel.
The expected flow would be that when the user minimizes the app, the native flow should be cancelled and any buttons that were pressed to initiate the flow would become intractable again.
I’ve been trying to make use of OnApplicationPause and OnApplicationFocus for this but have not seen my problem solved by using them.
If anyone has a solution to this, or any thoughts, please share!
Probably better posted in the IAP forum. Ensure to be testing with IAP 2.2.7 (Asset) and In App Purchasing library 2.2.2 (Package Manager) https://forum.unity.com/forums/unity-iap.112/
Yes, upon further investigation, this is indeed a Google issue, we have brought it up to them previously. They marked it as “Won’t fix” but we have asked for clarification.