I'm probably doing something wrong but I have no clue what. The OpenIAB is working perfectly on my iOS build, but on my Android build is not working at all.
I'm only connecting to Google Play on android for in apps but I get no response from the server. I never get the billing supported or billing not supported from google for example.
I'm initialising everything from start and nothing happens. What am I doing wrong?
void Start() {
var options = new OnePF.Options();
options.storeKeys.Add(OnePF.OpenIAB_Android.STORE_GOOGLE, GOOGLE_PLAY_KEY);
OnePF.OpenIAB.init(options);
OnePF.OpenIAB.mapSku("coins1", OnePF.OpenIAB_iOS.STORE, "coins1");
OnePF.OpenIAB.mapSku("coins2", OnePF.OpenIAB_iOS.STORE, "coins2");
OnePF.OpenIAB.mapSku("coins3", OnePF.OpenIAB_iOS.STORE, "coins3");
OnePF.OpenIAB.mapSku("coins4", OnePF.OpenIAB_iOS.STORE, "coins4");
OnePF.OpenIAB.mapSku("coins5", OnePF.OpenIAB_iOS.STORE, "coins5");
OnePF.OpenIAB.mapSku("coins6", OnePF.OpenIAB_iOS.STORE, "coins6");
OnePF.OpenIAB.mapSku("life1", OnePF.OpenIAB_iOS.STORE, "life1");
OnePF.OpenIAB.mapSku("life2", OnePF.OpenIAB_iOS.STORE, "life2");
OnePF.OpenIAB.mapSku("life3", OnePF.OpenIAB_iOS.STORE, "life3");
OnePF.OpenIAB.mapSku("coins1", OnePF.OpenIAB_Android.STORE_GOOGLE, "smash.coins1");
OnePF.OpenIAB.mapSku("coins2", OnePF.OpenIAB_Android.STORE_GOOGLE, "smash.coins2");
OnePF.OpenIAB.mapSku("coins3", OnePF.OpenIAB_Android.STORE_GOOGLE, "smash.coins3");
OnePF.OpenIAB.mapSku("coins4", OnePF.OpenIAB_Android.STORE_GOOGLE, "smash.coins4");
OnePF.OpenIAB.mapSku("coins5", OnePF.OpenIAB_Android.STORE_GOOGLE, "smash.coins5");
OnePF.OpenIAB.mapSku("coins6", OnePF.OpenIAB_Android.STORE_GOOGLE, "smash.coins6");
OnePF.OpenIAB.mapSku("life1", OnePF.OpenIAB_Android.STORE_GOOGLE, "smash.life1");
OnePF.OpenIAB.mapSku("life2", OnePF.OpenIAB_Android.STORE_GOOGLE, "smash.life2");
OnePF.OpenIAB.mapSku("life3", OnePF.OpenIAB_Android.STORE_GOOGLE, "smash.life3");
}
private void BillingSupported() { _billingSupported = true; OnePF.OpenIAB.queryInventory(); }
private void BillingNotSupported(string error) { _billingSupported = false; Debug.Log("Billing is not Supported: " + error); }
private void PurchaseSucceded(OnePF.Purchase purchase) { SuccededBuyItem(purchase); }
private void PurchaseFailed(string error) { FailedBuyItem(error); Debug.Log("Purchase Failed: " + error); }
private void ConsumePurchaseSucceeded(OnePF.Purchase purchase) { SuccededBuyItem(purchase); }
private void ConsumePurchaseFailed(string error) { FailedBuyItem(error); Debug.Log("ConsumePurchase Failed: " + error); }
private void TransactionRestored(string sku) {}
private void RestoreSucceeded() {}
private void RestoreFailed(string error) { FailedBuyItem(error); Debug.Log("Restore Failed: " + error); }
private void QueryInventoryFailed(string error) { FailedBuyItem(error); Debug.Log("QueryInventory Failed: " + error); }
private void QueryInventorySucceeded(OnePF.Inventory inventory) { UpdateStore(inventory);
}