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 purchases ui flutter registrant error and paywall opening not supported #1038

Open
1 of 7 tasks
Albertbol opened this issue Apr 10, 2024 · 3 comments
Open
1 of 7 tasks
Labels
bug Something isn't working

Comments

@Albertbol
Copy link

Albertbol commented Apr 10, 2024

‼️ 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 Albertbol added the bug Something isn't working label Apr 10, 2024
@RCGitBot
Copy link
Contributor

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

@vegaro
Copy link
Contributor

vegaro commented Apr 11, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants