RevenueCat / purchases-flutter

Flutter plugin for in-app purchases and subscriptions. Supports iOS, macOS and Android.
https://www.revenuecat.com/
MIT License
594 stars 160 forks source link

macOS purchases ui flutter registrant error and paywall opening not supported #1038

Open Albertbol opened 3 months ago

Albertbol commented 3 months ago

‼️ Required data ‼️

Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.

There are a lot of things that can contribute to things not working. Having a very basic understanding of your environment will help us understand your issue faster!

Environment

Describe the bug

Firstly, opening paywall on macOS not working from purchases flutter ui, it sends error ios platform is required, why would you add macOS badge to package in that case?

Secondly, PaywallFooterView is throwing error:

"A UIKitView widget is trying to create a PlatformView with an unregistered type: < com.revenuecat.purchasesui/PaywallFooterView >"
"If you are the author of the PlatformView, make sure `registerViewFactory` is invoked.
See: https://docs.flutter.dev/development/platform-integration/platform-views#on-the-platform-side-1 for more details.
If you are not the author of the PlatformView, make sure to call `GeneratedPluginRegistrant.register`." 

I have following 2 line in my GeneratedPluginRegistrant.register:

PurchasesFlutterPlugin.register(with: registry.registrar(forPlugin: "PurchasesFlutterPlugin"))
PurchasesUiFlutterPlugin.register(with: registry.registrar(forPlugin: "PurchasesUiFlutterPlugin"))

Additional context

Add any other context about the problem here.

RCGitBot commented 3 months ago

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

vegaro commented 2 months ago

Hi @Albertbol

Sorry about this but it looks like we need to do some work on the SDK to support MacOS in purchases_ui_flutter. We don't have an estimate yet on when this will get done. We will be removing the badge from pub.dev until we get that done.

Sorry again about all the trouble.

lukemmtt commented 1 month ago

Just a +1 for this feature—no other paywall builders that I've explored (Superwall, Adapty) currently support Flutter-macOS paywalls—it would be fantastic if RC could fill this gap in the market 🙏🏻