I configure and test billing in the application. I managed to buy android.test.purchased and it did what it should. But now I need to use it to continue testing. The problem is that I can’t get to the inventory.
When this is called, I get result.isFaliure () and I cannot get the inventory.
IabHelper.QueryInventoryFinishedListener _gotInventoryListener = new IabHelper.QueryInventoryFinishedListener() {
@Override
public void onQueryInventoryFinished(IabResult result, Inventory inventory) {
if (_iabHelper == null) return;
if (result.isFailure()) {
Log.d(TAG, "Failed to query inventory: " + result);
return;
}
Log.d(TAG, "Query inventory was successful.");
Purchase premiumPurchase = inventory.getPurchase(SKU_PREMIUM);
_isPremium = (premiumPurchase != null && verifyDeveloperPayload(premiumPurchase));
Log.d(TAG, "User is " + (_isPremium ? "PREMIUM" : "NOT PREMIUM"));
update();
}
};
It logs an error message
Failed to complete inventory request: IabResult: inventory update error (request for items in ownership). (Answer: -1003: purchase signature verification completed)
Android .test.purchased is still owned - it will not let me buy it again. My phone has a network connection, so it is not.
APK Google Play, , googles?