Hi, you can use our webhooks to get the notification to your server when a user cancels a subscription and then can change the offering being displayed via our REST API endpoint here: https://www.revenuecat.com/docs/api-v1#tag/offerings/operation/override-offering. This is not possible to do via our targeting as our current filters are only App, App Version, Country, and RC SDK version.
Thanks Haley!
The solution I’m going with is to check if the customer already has items in `allPurchasedProductIdentifiers`. If there are items in the array, I know that I have to show another offering!
Here is my code:
const { customerInfo } = await Purchases.getCustomerInfo();
const isNewCustomer = !Boolean(customerInfo?.allPurchasedProductIdentifiers?.length);
if (isNewCustomer) {
// Show normal offering
} else {
// Show discounted offering to win user back
}