Skip to main content
Question

How to use paywall in flutter?

  • December 7, 2023
  • 1 reply
  • 428 views

Forum|alt.badge.img+1

I would like to use paywall for Flutter.
Although I read this description (https://github.com/RevenueCat/purchases-flutter/releases/tag/6.3.0-beta.1), I can not understand how to configure MainActivity.


This is my current MainActivity.kt, but I encountered the error: Unresolved reference: revenuecat .

package my_personal.app

import com.revenuecat.purchases_flutter.PurchasesFlutterActivity

// Paywall Support

class MainActivity : PurchasesFlutterActivity() {
}

 

This post has been closed for comments

1 reply

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

Hi,

Happy to help here. Just to double-check something obvious first, can you confirm you’re able to import from com.revenuecat.purchases_flutter elsewhere in your project?