Integrating Customer Center on Flutter
Installationโ
Before integrating the Customer Center in Flutter, add purchases_ui_flutter
8.6.0
or higher in your pubspec.yaml
:
dependencies:
purchases_flutter: <latest version>
purchases_ui_flutter: <latest version>
Integrationโ
Opening the customer center is as simple as:
await RevenueCatUI.presentCustomerCenter();
Setup promotional offersโ
Promotional Offers allow developers to apply custom pricing and trials to new customers and to existing and lapsed subscriptions. Unique promotional offers can be assigned to different paths and survey responses in the Customer Center, but first they must be setup in App Store Connect and Google Play Store.
The Customer Center will automatically show offers based on specific user actions. By default we have defined it for cancellations but it can be modified to any of the defined paths. For Flutter you are going to have to configure these promotional offers in both Google Play Console and App Store Connect. Refer to configuring Google Play Store promotional offers and configuring App Store Connect promotional offers for detailed instructions.
Learn more about configuring the Customer Center in the configuration guide.