Check user subcription renewal status

Flutter tips Published on

Why Check Renewal Status?

Knowing if a user's subscription is about to end is really helpful. It gives you a chance to reach out and maybe show them a special deal before they leave. This can help keep your users happy and subscribed!

Using RevenueCat

If you are using RevenueCat to manage subscriptions, you can check the renewal status with a simple code snippet. Here’s how:

Future<bool> hasRenewal() async {
  final customerInfo = await Purchases.getCustomerInfo();
  final entitlements = customerInfo.entitlements.active.values.firstOrNull;
  return entitlements?.willRenew ?? false; // Added null check for safety
}

This code gets the customer's subscription info and checks the willRenew flag on their active entitlement.

Using ApparenceKit

For those using ApparenceKit, checking the renewal status is even simpler. ApparenceKit provides a direct way to access this information:

user.subscription.hasRenewal

This boolean property tells you if the user's current subscription is set to automatically renew.

Proactive Engagement

By knowing the renewal status, you can proactively engage with users who might not be renewing. This allows you to offer incentives or gather feedback before they potentially churn.

Save 3 months of work

Create your app using our 6 years of making Flutter apps and more than 50+ apps

kickstarter for flutter apps

Frequently Asked Questions

Why should I check if a subscription will renew?

Checking allows you to identify users who might be leaving soon, giving you an opportunity to offer them promotions or encouragement to stay subscribed.

How can I check renewal status using RevenueCat?

You can use the `Purchases.getCustomerInfo()` method, find the active entitlement, and check the `willRenew` property.

Is there an easy way to check renewal status with ApparenceKit?

Yes, ApparenceKit provides a convenient property `user.subscription.hasRenewal` that gives you this information directly.

Read more
You may also be interested in
Flutter tips: how to create a responsive layout  blog card image
Flutter tips: how to create a responsive layout
Published on 2025-05-03
How to open the system app settings page  blog card image
How to open the system app settings page
Published on 2025-05-02
ApparenceKit is a flutter template generator tool by Apparence.io © 2025.
All rights reserved