Skip to main content
Question

Flutter Android revenuecat subscription status is active even after expiration

  • December 1, 2021
  • 4 replies
  • 407 views

Forum|alt.badge.img+3

I am using Revenuecat (purchases_flutter: ^3.7.0) plugin in my Flutter Android app. However I noticed, even if the (test) subscription has been ended the code shows it is still active.

I am using the following method to determine whether the subscription is active or not.

 

static isUserSubscribed() async {
  bool _isSubscribed = false;
  await Purchases.setDebugLogsEnabled(false);
  await Purchases.setup(revenueCatId);
  if (userId != null) {
      await Purchases.setup(revenueCatId, appUserId: userId);
      PurchaserInfo purchaserInfo = await Purchases.getPurchaserInfo();
  if (purchaserInfo.entitlements.all["Ads Free"] != null &&
      purchaserInfo.entitlements.all["Ads Free"].isActive != null &&
      purchaserInfo.entitlements.all["Ads Free"].isActive) {

  //  it comes here even though the subscription has been expired 
     _isSubscribed = true; 
  } 
  return _isSubscribed;
}

I noticed, when I do test purchase and even after the subscription has been ended the above method returns true always. I even restarted the app and logged out and even clear the memory too.

If I go to revenucat.com and remove the user by searching the email address then it start returning false. My test subscription was expired in the morning around 9:00 AM but in the evening also it showing active in the app. 

Thank you

4 replies

Forum|alt.badge.img+2

same, did you solve it?

 
 
×
 
 
 

Forum|alt.badge.img+3
  • Author
  • New Member
  • 4 replies
  • December 2, 2021
Ahmet Aydemir wrote:

same, did you solve it?

 
 
×
No... tried lot of things but no luck so far. Are you Also facing this issue?
 
 
 
 
×
 
 
 

 


Forum|alt.badge.img+2
signshah wrote:

I am using Revenuecat (purchases_flutter: ^3.7.0) plugin in my Flutter Android app. However I noticed, even if the (test) subscription has been ended the code shows it is still active.

I am using the following method to determine whether the subscription is active or not.

 

static isUserSubscribed() async {
  bool _isSubscribed = false;
  await Purchases.setDebugLogsEnabled(false);
  await Purchases.setup(revenueCatId);
  if (userId != null) {
      await Purchases.setup(revenueCatId, appUserId: userId);
      PurchaserInfo purchaserInfo = await Purchases.getPurchaserInfo();
  if (purchaserInfo.entitlements.all["Ads Free"] != null &&
      purchaserInfo.entitlements.all["Ads Free"].isActive != null &&
      purchaserInfo.entitlements.all["Ads Free"].isActive) {

  //  it comes here even though the subscription has been expired 
     _isSubscribed = true; 
  } 
  return _isSubscribed;
}

I noticed, when I do test purchase and even after the subscription has been ended the above method returns true always. I even restarted the app and logged out and even clear the memory too.

If I go to revenucat.com and remove the user by searching the email address then it start returning false. My test subscription was expired in the morning around 9:00 AM but in the evening also it showing active in the app. 

Thank you

did you solve it?


Forum|alt.badge.img+3
  • Author
  • New Member
  • 4 replies
  • December 6, 2021
Ahmet Aydemir wrote:

 

did you solve it?

 
 
×
 
No… searching everywhere but no answer yet :-( 
 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings