What I am trying?
Purchasing items in one android device having configured X email address. When I check in another device having the same email address configured. but items purchased on first device is not getting available in another device.
What I have tried?
I have tried using :
inappBillingService.getPurchases(InAppBuyActivity.INAPPVERSION,
getPackageName(), "inapp", null);
and also tried using :
IabHelper.QueryInventoryFinishedListener mGotInventoryListener
= new IabHelper.QueryInventoryFinishedListener() {
public void onQueryInventoryFinished(IabResult result,
Inventory inventory) {
if (result.isFailure()) {
// handle error here
}
else {
// Not getting same purchased on both devices
}
}
};
I am generating signed apk having the same version name and version code as of playstore version.
I have tested the app using two devices. It takes sometime to reflect the purchases.
If i delete the app and reinstall it as a fresh then new purchased items are there. But, if i purchase one item and check it on second device at same time its not reflected there.
App shows items already purchased in second device when user try to purchase it. But, its not available in inappBillingService.getPurchases
and IabHelper.QueryInventory
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With