My code works :
IAPResponse response = await FlutterIap.fetchProducts(productIds);
Except in the case where there is a problem during the request (for example when trying the code on an emulator and there is no IAP). In this case we get the error text :
D/BillingManager( 3081): Destroying the manager.
D/BillingManager( 3081): Creating Billing client.
D/BillingManager( 3081): Starting setup.
D/BillingManager( 3081): Setup finished. Response code: 3
But the IAPResponse is never returned so my code is left hanging.
It would be better if it returned with the status code so that I can do :
IAPResponse response = await FlutterIap.fetchProducts(productIds);
if(response.status==3) return false;
My code works :
Except in the case where there is a problem during the request (for example when trying the code on an emulator and there is no IAP). In this case we get the error text :
But the IAPResponse is never returned so my code is left hanging.
It would be better if it returned with the status code so that I can do :