Skip to main content
Question

Expired subscription appearing as Active

  • September 29, 2024
  • 1 reply
  • 20 views

Forum|alt.badge.img

Issue:

I have a sandbox subscription that expired over 6h ago, but it still returns in the active entitlements.

The expiration date in the customer info from flutter sdk is: expirationDate: 2024-09-28T14:07:31Z. The current date is 2024-09-29T06:00:00Z. However, isActive is still true. 

I guess possibly a caching issue, but 6h seems a bit long? On the revenuecat website when I search the user it shows the annual package expired as expected. The issue is just with the sdk result.

Any ideas on how to fix? Don’t want to push to live if some bug here. 

Json output:

Here is relevant part of the entitlements json: 

{entitlements: {all: {premium: {identifier: premium, isActive: true, willRenew: true, latestPurchaseDate: 2024-09-28T13:07:31Z, originalPurchaseDate: 2024-09-23T02:20:56Z, productIdentifier: vb_1y, isSandbox: true, ownershipType: PURCHASED, store: APP_STORE, periodType: NORMAL, expirationDate: 2024-09-28T14:07:31Z, unsubscribeDetectedAt: null, billingIssueDetectedAt: null, productPlanIdentifier: null, verification: NOT_REQUESTED}}, active: {premium: {identifier: premium, isActive: true, willRenew: true, latestPurchaseDate: 2024-09-28T13:07:31Z, originalPurchaseDate: 2024-09-23T02:20:56Z, productIdentifier: vb_1y, isSandbox: true, ownershipType: PURCHASED, store: APP_STORE, periodType: NORMAL, expirationDate: 2024-09-28T14:07:31Z, unsubscribeDetectedAt: null, billingIssueDetectedAt: null, productPlanIdentifier: null, verification: NOT_REQUESTED}}, verification: NOT_REQUESTED}, allPurchaseDates: {vb_1m: 2024-09-23T04:33:58Z, vb_1y: 2024-09-28T13:07:31Z}, activeSubscriptions: [vb_1y]

 

Thanks! 

This post has been closed for comments

1 reply

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 313 replies
  • October 2, 2024

Hi @alex-simpson-407c60,

It should not appear as active in the SDK after 6h for sure. Would you mind trying with a fresh test user and do the full flow?

Thanks!


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