- Home /
Why is Product.availableToPurchase true for inactive Google Play product?
According to the docs, Product.availableToPurchase "will be false if the product's identifier is unknown, incorrect or otherwise disabled with the store provider (ie Apple, Google et al)."
I deactivated an in-app product in the Google Play developer console yesterday, but the corresponding Product.availableToPurchase is still true when UnityPurchasing is initialized. (If I try to purchase the product in the app, I get an error from Google Play saying the item is not available.)
Is this a known bug? Is it working correctly for anyone?
Answer by dppc · Feb 03, 2016 at 08:03 PM
I've learned that this is actually a limitation of Google Play. Version 3 of the In-App Billing API does not provide any mechanism for an app to discover (without attempting to purchase) that an in-app product has been deactivated in the developer console.
Seems like this should be noted in the Unity docs, but it isn't a bug in the Unity IAP system.
Your answer
Follow this Question
Related Questions
How do I Build & Run Android game as a specific Google Account? 2 Answers
IAP Restore purchase on Android "Already Recorded Transaction" 0 Answers
Google IAP: How to tell if a product is purchased? 0 Answers
Authentication error when testing Unity IAP on an Android device 1 Answer
Crash when returning from PlayStore purchasing interface 1 Answer