macOS purchases ui flutter registrant error and paywall opening not supported
- [X] I have updated Purchases SDK to the latest version
- [ X] I have read the Contribution Guidelines
- [ X] I have searched the Community
- [ X] I have read docs.revenuecat.com
- [ X] I have searched for existing Github issues
‼️ 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.
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
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.
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 🙏🏻
+1 on this