purchases-flutter
purchases-flutter copied to clipboard
Unable to use Purchase_ui_Flutter on FlutterFlow apps
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.
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
I think you can still use PaywallView instead of presentPaywall, tho I could be wrong