Question

Flutter Android revenuecat subscription status is active even after expiration

  • 1 December 2021
  • 4 replies
  • 331 views

Badge +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

Badge +2

same, did you solve it?

 
 
×
 
 
 
Badge +3

same, did you solve it?

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

 

Badge +2

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?

Badge +3

 

did you solve it?

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

 

Reply