purchases-flutter icon indicating copy to clipboard operation
purchases-flutter copied to clipboard

macOS purchases ui flutter registrant error and paywall opening not supported

Open Albertbol opened this issue 1 year ago • 4 comments

‼️ 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

  • [ ] Output of flutter doctor
  • [ ] Version of purchases-flutter
  • [ ] Testing device version e.g.: iOS 15.5, Android API 30, etc.
  • [ ] How often the issue occurs- every one of your customers is impacted? Only in dev?
  • [ ] Debug logs that reproduce the issue
  • [ ] Steps to reproduce, with a description of expected vs. actual behavior Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

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.

Albertbol avatar Apr 10 '24 07:04 Albertbol

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

RCGitBot avatar Apr 10 '24 07:04 RCGitBot

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.

vegaro avatar Apr 11 '24 12:04 vegaro

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 🙏🏻

lukemmtt avatar May 25 '24 16:05 lukemmtt

+1 on this

depombo avatar Mar 18 '25 21:03 depombo