Skip to main content
Question

Paywalls in Flutter


Forum|alt.badge.img+5

How to display paywall in flutter app?

Forum|alt.badge.img+2
  • New Member
  • November 8, 2023

As far I can see there is no support implemented for Flutter at this moment.


Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • November 8, 2023

Hi!

If you’re referring to our Paywalls feature, that’s correct—we don’t have support out for Flutter yet, but we are working on it.

If you’re asking about how to display a paywall in general in Flutter, we have a sample app here that renders a paywall with our best practices.


Forum|alt.badge.img+2
  • New Member
  • November 8, 2023
Ryan Glanz wrote:

Hi!

If you’re referring to our Paywalls feature, that’s correct—we don’t have support out for Flutter yet, but we are working on it.

If you’re asking about how to display a paywall in general in Flutter, we have a sample app here that renders a paywall with our best practices.

Thanks for the clarification! Was referring to the beta Paywall feature. Nice reading it is on it’s way to flutter as well.


Forum|alt.badge.img+5
Ryan Glanz wrote:

Hi!

If you’re referring to our Paywalls feature, that’s correct—we don’t have support out for Flutter yet, but we are working on it.

If you’re asking about how to display a paywall in general in Flutter, we have a sample app here that renders a paywall with our best practices.

I meant the feature yes. We started using it in our iOS app and enjoying so far. Looking forward to the flutter support. Is there any ETA?


Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • November 10, 2023

We don’t have an ETA just yet but we are actively working on it


NachoSoto
Forum|alt.badge.img+5
  • Active Helper
  • November 15, 2023

Hello everyone!

Good news, we've released a beta of Flutter Paywalls!  https://github.com/RevenueCat/purchases-flutter/releases/tag/6.3.0-beta.1.

Note that this is an early beta with very basic support, but it allows presenting fullscreen paywalls on both iOS and Android as well as going through the full purchase flow.
 

We would love to hear your feedback to help us make paywalls feel at home in Flutter.

For anything feel free to reply here or use https://form.typeform.com/to/ExfmHFYJ.

 

Thank you!


  • New Member
  • December 6, 2023
NachoSoto wrote:

Hello everyone!

Good news, we've released a beta of Flutter Paywalls!  https://github.com/RevenueCat/purchases-flutter/releases/tag/6.3.0-beta.1.

Note that this is an early beta with very basic support, but it allows presenting fullscreen paywalls on both iOS and Android as well as going through the full purchase flow.
 

We would love to hear your feedback to help us make paywalls feel at home in Flutter.

For anything feel free to reply here or use https://form.typeform.com/to/ExfmHFYJ.

 

Thank you!

Hi,

I saw that the Flutter Beta releases with the Paywall support says to subclass PurchasesFlutterActivity but when I do that the following error shows up:

 

Unresolved reference: PurchasesFlutterActivity

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

 

How do we reference PurchasesFlutterActivity in our MainActivity.kt file?

Thanks


NachoSoto
Forum|alt.badge.img+5
  • Active Helper
  • December 6, 2023

What version of the SDK are you using? 


  • New Member
  • December 6, 2023
NachoSoto wrote:

What version of the SDK are you using? 

Right now 6.3.0 Beta 2 but the issue also occurred for me with 6.3.0 Beta 1


NachoSoto
Forum|alt.badge.img+5
  • Active Helper
  • December 6, 2023

  • New Member
  • December 7, 2023
NachoSoto wrote:

How do I import it?


NachoSoto
Forum|alt.badge.img+5
  • Active Helper
  • December 7, 2023

Try adding this:

import com.revenuecat.purchases_flutter.PurchasesFlutterActivity;

 


  • New Member
  • December 8, 2023
NachoSoto wrote:

Try adding this:

import com.revenuecat.purchases_flutter.PurchasesFlutterActivity;

 

Thanks. That fixes it.

 

If it's possible, I would recommend adding that to the next Flutter Paywalls Beta release note  (or adding a way of showing that somewhere on the github repo) just to clarify how to import that for others.


NachoSoto
Forum|alt.badge.img+5
  • Active Helper
  • December 8, 2023

Awesome, thanks! We’ll add it to the future docs :)


Forum|alt.badge.img

Is this still on beta?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings