Skip to content

android: fetchProducts() never returns on error #27

Description

@Rockvole

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;

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions