Going through the v3 example file in modifying it with my project works fine. However my friend just tested the code by turning wi-fi off and turning on airplane mode. This
I solved the problem that away:
final ArrayList iabItemSkus = new ArrayList();
iabItemSkus.add(MyGame.productID_FULLVERSION);
// Disable SKU details if no network connection
boolean checkSkuDetails = isWifiConnected() ? true : false;
Gdx.app.log("IAB", "checkSkuDetails : " + checkSkuDetails);
mHelper.queryInventoryAsync(checkSkuDetails, iabItemSkus, mGotInventoryListener);
Not get Sku details if not network.