You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To ensure that Customer Center displays correctly with the right colors, contrast, and theme consistency, it needs to be wrapped in Material 3's `MaterialTheme`.
44
+
This allows it to dynamically adapt to dark and light mode while applying the correct Material Design colors to all UI elements.
45
+
If your app already uses Material 3's `MaterialTheme` with appropriate color schemes for dark and light mode, no additional changes are needed.
46
+
However, if CustomerCenter is the only composable in your hierarchy, if you're using Material 2, or if you're using another theming system, you may need to explicitly wrap it in Material 3's `MaterialTheme` to ensure proper theming.
You can listen to Customer Center events in two ways: using a global listener, or using a local listener through the CustomerCenter composable options.
59
+
60
+
First, create a CustomerCenterListener implementation:
-`onManagementOptionSelected`: Called when a user selects a management option (missing purchase, cancel, or custom URL)
95
+
-`onRestoreStarted`: Called when the restore process begins
96
+
-`onRestoreCompleted`: Called when the restore process completes successfully
97
+
-`onRestoreFailed`: Called when the restore process fails
98
+
-`onShowingManageSubscriptions`: Called when the manage subscriptions screen is shown
99
+
-`onFeedbackSurveyCompleted`: Called when a user completes a feedback survey
100
+
31
101
## Setup promotional offers
32
102
33
103
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 Google Play Console.
We've added a way to listen to events that occur within the `CustomerCenterView`. For now, we are not posting any event to our backend (like feedback survey selections). We are going to be adding way more events in the future, but these are what are available for now:
74
+
We've added a way to listen to events that occur within the `CustomerCenterView`:
Copy file name to clipboardexpand all lines: docs/tools/customer-center/customer-center-promo-offers-google.mdx
+7-5
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,15 @@ hidden: false
7
7
8
8
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 Play Store.
9
9
10
-
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. Here’s how it works:
10
+
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. Here's how it works:
-**Cancellation Retention Discount**: By default, for responses in the cancellation survey, RevenueCat will use a promotional offer that you can customize in the Offers tab of the Customer Center settings.
15
15
16
-
This setup enables RevenueCat to automatically match the right offer based on a user’s actions, providing a seamless experience when user tries to cancel their active subscription.
16
+
This setup enables RevenueCat to automatically match the right offer based on a user's actions, providing a seamless experience when user tries to cancel their active subscription.
17
17
18
-
The SDK will automatically match the right offer based on a user’s actions and its active subscription. If the SDK cannot locate a matching promotional offer id for the currently active user's subscription, it will bypass the survey and proceed with the user’s requested action—either canceling or refunding the subscription.
18
+
The SDK will automatically match the right offer based on a user's actions and its active subscription. If the SDK cannot locate a matching promotional offer id for the currently active user's subscription, it will bypass the survey and proceed with the user's requested action—either canceling or refunding the subscription.
19
19
20
20
**These promotional offers must be created in App Store Connect and Google Play Store in order to be shown to customers**
21
21
@@ -29,10 +29,12 @@ Unique promotional offers can be assigned to different paths and survey response
29
29
30
30
Offers on the Play Store allow you to provide a custom price or a trial (or both) for a product. There are [different types of offers](/subscription-guidance/subscription-offers/google-play-offers#eligibility-criteria) that can be created in the Play Store. For the Customer Center, you will be using the **Developer determined** type.
31
31
32
-
Additionally, **add the `rc-customer-center`tag** to the developer determined offer from your product so that the offer is only available to Customer Center **and not used as a default offer when purchasing the product**.
32
+
Additionally, **add both the `rc-customer-center`and `rc-ignore-offer` tags** to the developer determined offer from your product. The `rc-customer-center` tag ensures the offer is only available to Customer Center **and not used as a default offer when purchasing the product**, while the `rc-ignore-offer` tag prevents the offer from being shown to users with older SDK versions.
33
33
34
34
:::warning Offers must be created in Google Play Console and tagged
35
-
Don't forget to add the tag `rc-customer-center` to the offer so that the offer is only available to Customer Center and not used as a default offer when purchasing the product or in Paywalls.
35
+
Don't forget to add both tags:
36
+
-`rc-customer-center`: Makes the offer only available in the Customer Center and not used as a default offer when purchasing the product or in Paywalls
37
+
-`rc-ignore-offer`: Prevents the offer from being shown to users with older SDK versions that don't support the Customer Center
36
38
:::
37
39
38
40

Copy file name to clipboardexpand all lines: docs/tools/customer-center/customer-center-react-native.mdx
+10
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,16 @@ Opening the customer center is as simple as:
29
29
awaitRevenueCatUI.presentCustomerCenter();
30
30
```
31
31
32
+
### Listening to events
33
+
34
+
We've added a way to listen to events that occur within the Customer Center. For now, we are not posting any event to our backend (like feedback survey selections). We are going to be adding way more events in the future, but these are what are available for now:
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.
0 commit comments