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

Unable to use Purchase_ui_Flutter on FlutterFlow apps

Open Unity2Blender opened this issue 6 months ago • 2 comments

Hi team,

I have been using Revenuecat for the past few months and everything has been great except the fact the I could not use Paywall pub dev package of yours in my FlutterFlow based app.

Apparently, to use purchases_ui_flutter on Android, you would also need to edit MainActivity.kt file in my android folder of the project.

From:

import io.flutter.embedding.android.FlutterActivity

class MainActivity : FlutterActivity() {}

To:

import io.flutter.embedding.android.FlutterFragmentActivity

class MainActivity : FlutterFragmentActivity() {}

The Problem

  • In Flutterflow we cannot edit the MainActivity.kt, Can you guys please implement a workaround in your purchases_ui_flutter package somehow that you would be able to edit the Mai act vity.kt or some direct fix.

Unity2Blender avatar Jun 12 '25 05:06 Unity2Blender

👀 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 Jun 12 '25 05:06 RCGitBot

I think you can still use PaywallView instead of presentPaywall, tho I could be wrong

kjm0202 avatar Jul 22 '25 14:07 kjm0202