Open bhojaniajay opened 7 years ago
Hi, Here are my development flow of in app.
I am using unity5.4.0f3 unity personnel version.
openIAB plugin version is 0.9.8.6.
In ios working OK. Getting problem with restore purchase in android.
Testing account is added in test account in alpha test in google play developer console.
App installing with the same account in android device which is added in google play console.
Android manifest file version is OK and also BILLING activity added, checked and tested
Purchasing test order say "You will not charge for test account" etc, and successfully purchasing app. Setting preference But,
When uninstalling app and reinstalling again with same account,
Calling private void OnBillingSupported() { Debug.Log("Billing is supported"); OpenIAB.queryInventory(new string[] {"premium_version_no_ads" }); }
Also getting response \ -private void OnQueryInventorySucceeded(Inventory inventory) { if (inventory.HasPurchase ("premium_version_no_ads")) { } }
But not getting any previous purchase detail using GETPURCHASE AND HASPURCHASE functions,
just getting inventory object response null.
Please help How to restore purchase in android ?
Thank you.
there is not restore purchases for android for android you query for inventory to check if items are already bought if yes then you allow them to users restore purchase option is only for IOS
Hi, Here are my development flow of in app.
I am using unity5.4.0f3 unity personnel version.
openIAB plugin version is 0.9.8.6.
In ios working OK. Getting problem with restore purchase in android.
Testing account is added in test account in alpha test in google play developer console.
App installing with the same account in android device which is added in google play console.
Android manifest file version is OK and also BILLING activity added, checked and tested
Purchasing test order say "You will not charge for test account" etc, and successfully purchasing app. Setting preference But,
When uninstalling app and reinstalling again with same account,
Calling private void OnBillingSupported() { Debug.Log("Billing is supported"); OpenIAB.queryInventory(new string[] {"premium_version_no_ads" }); }
Also getting response \ -private void OnQueryInventorySucceeded(Inventory inventory) { if (inventory.HasPurchase ("premium_version_no_ads")) { } }
But not getting any previous purchase detail using GETPURCHASE AND HASPURCHASE functions,
just getting inventory object response null.
Please help How to restore purchase in android ?
Thank you.