flutter_iap icon indicating copy to clipboard operation
flutter_iap copied to clipboard

Add better docs

Open JackAppDev opened this issue 7 years ago • 5 comments

JackAppDev avatar Jul 28 '18 01:07 JackAppDev

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

RobertBrunhage avatar Aug 04 '18 05:08 RobertBrunhage

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

JackAppDev avatar Aug 04 '18 05:08 JackAppDev

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

RobertBrunhage avatar Aug 04 '18 05:08 RobertBrunhage

Thanks. I'll look into this.

JackAppDev avatar Aug 04 '18 05:08 JackAppDev

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

RobertBrunhage avatar Aug 04 '18 05:08 RobertBrunhage