JackAppDev / flutter_iap

Flutter iap plugin
MIT License
100 stars 15 forks source link

Add better docs #31

Open JackAppDev opened 6 years ago

RobertBrunhage commented 6 years ago

Just saw that you released subscription for Android, will IOS come soon also? And does the documentation work for subscription?

JackAppDev commented 6 years ago

iOS will come in the next few days. Subscriptions should work with the buy function.

RobertBrunhage commented 6 years ago

Just tried with a subscription like in the docs but it says: Not working? Check that you set up in app purchases...

And so I tried with a normal IAP and that it could find and fetch.

List<String> productIds = [Constants.subscription30];

IAPResponse response = await FlutterIap.fetchProducts(productIds);
productIds = response.products
    .map((IAPProduct product) => product.productIdentifier)
    .toList();

This returned no product but I have an active subscription in the play console

JackAppDev commented 6 years ago

Thanks. I'll look into this.

RobertBrunhage commented 6 years ago

Also got type EfficientLengthFollowedByIterable<Widget> is not a subtype of type 'List<Widget>' from the.followedBy(list) But fixed this by adding .toList() after!