Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS Support #26

Closed
rodydavis opened this issue Mar 16, 2020 · 11 comments · Fixed by #103
Closed

MacOS Support #26

rodydavis opened this issue Mar 16, 2020 · 11 comments · Fixed by #103

Comments

@rodydavis
Copy link

rodydavis commented Mar 16, 2020

I thought MacOS was supported? Can you show me documentation to get started? Works great on iOS and Android. Also is web support for Flutter web added?

[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method setDebugLogsEnabled on channel purchases_flutter)
#0      MethodChannel._invokeMethod 
package:flutter/…/services/platform_channel.dart:154
<asynchronous suspension>
#1      MethodChannel.invokeMethod 
package:flutter/…/services/platform_channel.dart:329
#2      Purchases.setDebugLogsEnabled 
package:purchases_flutter/purchases_flutter.dart:243
#3      CartBloc.mapEventToState 
package:hymns_for_worship/…/cart/cart_bloc.dart:45
<asynchronous suspension>
#4      Bloc._bindStateSubject.<anonymous closure> 
package:bloc/src/bloc.dart:155
#5      Stream.asyncExpand.onListen.<anonymous closure>  (dart:async/stream.dart:576:30)
#6      _rootRunUnary  (dart:async/zone.dart:1134:38)
#7      _CustomZone.runUnary  (dart:async/zone.dart:1031:19)
#8      _CustomZone.runUnaryGuarded  (dart:async/zone.dart:933:7)
#9      _BufferingStreamSubscription._sendData  (dart:async/stream_impl.dart:339:11)
#10     _DelayedData.perform  (dart:async/stream_impl.dart:594:14)
#11     _StreamImplEvents.handleNext  (dart:async/stream_impl.dart:710:11)
#12     _PendingEvents.schedule.<anonymous closure>  (dart:async/stream_impl.dart:670:7)
#13     _rootRun  (dart:async/zone.dart:1122:38)
#14     _CustomZone.run  (dart:async/zone.dart:1023:19)
#15     _CustomZone.runGuarded  (dart:async/zone.dart:925:7)
#16     _CustomZone.bindCallbackGuarded.<anonymous closure>  (dart:async/zone.dart:965:23)
#17     _rootRun  (dart:async/zone.dart:1126:13)
#18     _CustomZone.run  (dart:async/zone.dart:1023:19)
#19     _CustomZone.runGuarded  (dart:async/zone.dart:925:7)
#20     _CustomZone.bindCallbackGuarded.<anonymous closure>  (dart:async/zone.dart:965:23)
#21     _microtaskLoop  (dart:async/schedule_microtask.dart:43:21)
#22     _startMicrotaskLoop  (dart:async/schedule_microtask.dart:52:5)
@vegaro
Copy link
Contributor

vegaro commented Mar 27, 2020

Flutter web is not yet supported since our cross-platform SDKs don't support Stripe yet. I've realized there is a badge in pub.dev indicating support for web. I will remove it.

Regarding macOS support, we haven't tested yet, but as far as I am aware, it's not in the stable channel of Flutter yet, right? I just spend some time digging around macOS support and we need to make some changes on the plugin.

I am going to leave this Issue open to track the macOS support

@rodydavis
Copy link
Author

Macos is in alpha on the dev channel but not in stable I believe. If you need a tester for it please let me know.

And for web is there a way I can use this server to store purchases? For example not completing new ones just checking if a user purchased on iOS or Android. I know they would have to use the mobile app once before the web. Is there a database of users to access? Or is it all just api wrappers.

I haven’t found a good solution for web yet before building my own.

@vegaro
Copy link
Contributor

vegaro commented May 6, 2020

Regarding for your web case, you could use our REST API https://docs.revenuecat.com/reference#basic. You would have to call this API from your own backend though, a Firebase Function for example, and send/get the data from RevenueCat from there to be consumed. Calling our REST API directly from Flutter won't work and will give you Cross-Origin requests blocked

@rodydavis
Copy link
Author

When you have MacOS please let me know. I have a Flutter app ready to be released with it.

@Jonas-Sander
Copy link

Then please remove it from your Features list?! "macOS support"
image

We now wasted our time trying to fix a problem that was not even caused by us... 🙄

@vegaro
Copy link
Contributor

vegaro commented May 20, 2020

Sorry to waste your time @jsanl I will remove that now. We removed it from the supported platforms at https://pub.dev/packages/purchases_flutter, but not from the readme

@muhleder
Copy link

@vegaro You could also remove the stated web support from the Readme know whether a user is subscribed whether they're on iOS, Android or web

@vegaro
Copy link
Contributor

vegaro commented Jun 30, 2020

Removing it here #78. Thanks for bringing that up @muhleder

@nilsreichardt
Copy link

Are there any plans to support Flutter RevenueCat for macOS? RevenueCat for macOS should be working: https://docs.revenuecat.com/docs/macos

@vegaro
Copy link
Contributor

vegaro commented Jul 22, 2020

It's in our backlog @AndroidNils

I will update here when we start working on it

@nilsreichardt
Copy link

Great, @vegaro! So can we reopen this issue?

@vegaro vegaro reopened this Aug 13, 2020
@vegaro vegaro linked a pull request Sep 25, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants