Skip to main content
Question

isActive returns false for new subscription after calling `getCustomerInfo` in sandbox

  • 17 December 2021
  • 4 replies
  • 171 views

Forum|alt.badge.img+2

SDK: RevenueCat 4.0.0-beta.x

Operating System: iOS 15.1.1


After successfully activating a subscription in the sandbox, calling `getCustomerInfo` and querying the relevant entitlement in `purchaseInfo.entitlements` on the returned `PurchaserInfo` object yields an entitlement with `isActive` set to false.

Is this the expected behavior for entitlements when working in the sandbox, or should the relevant entitlement’s `isActive` property be set to `true` after successfully completing a sandbox purchase?

4 replies

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 492 replies
  • January 7, 2022

Hey @StudentDriver!

Subscriptions in sandbox should result in active entitlements for the duration of the subscription (although it is a shorter duration than production mode).

Can you provide some debug logs reproducing this issue?


  • New Member
  • 2 replies
  • January 13, 2025

Hi ​@cody, I’m getting similar issue. While checking log in Xcode, I get this warning,

Entitlement is no longer active (expired 2025-01-13 15:14:13 +0000) and it's outside grace period window (last updated 2025-01-13 15:10:29 +0000)

This is the customer info,

{
  "nonSubscriptionTransactions": [],
  "originalPurchaseDate": "2013-08-01T07:00:00Z",
  "allPurchaseDatesMillis": {
    "fm_30_1m_10d0": 1736783966000
  },
  "entitlements": {
    "verification": "NOT_REQUESTED",
    "all": {
      "Abc Pro": {
        "unsubscribeDetectedAtMillis": null,
        "billingIssueDetectedAt": null,
        "isSandbox": true,
        "latestPurchaseDateMillis": 1736783966000,
        "store": "APP_STORE",
        "identifier": "Abc Pro",
        "productPlanIdentifier": null,
        "isActive": false,
        "unsubscribeDetectedAt": null,
        "periodType": "NORMAL",
        "billingIssueDetectedAtMillis": null,
        "expirationDateMillis": 1736784266000,
        "willRenew": true,
        "ownershipType": "PURCHASED",
        "verification": "NOT_REQUESTED",
        "originalPurchaseDate": "2025-01-13T15:10:13Z",
        "expirationDate": "2025-01-13T16:04:26Z",
        "latestPurchaseDate": "2025-01-13T15:59:26Z",
        "originalPurchaseDateMillis": 1736781013000,
        "productIdentifier": "fm_30_1m_10d0"
      }
    },
    "active": {}
  },
  "latestExpirationDateMillis": 1736784266000,
  "originalPurchaseDateMillis": 1375340400000,
  "allExpirationDatesMillis": {
    "fm_30_1m_10d0": 1736784266000
  },
  "latestExpirationDate": "2025-01-13T16:04:26Z",
  "requestDateMillis": 1736783972963,
  "firstSeen": "2025-01-13T15:08:32Z",
  "allPurchaseDates": {
    "fm_30_1m_10d0": "2025-01-13T15:59:26Z"
  },
  "managementURL": "https://apps.apple.com/account/subscriptions",
  "originalApplicationVersion": "1.0",
  "activeSubscriptions": [],
  "firstSeenMillis": 1736780912000,
  "allPurchasedProductIdentifiers": [
    "fm_30_1m_10d0"
  ],
  "requestDate": "2025-01-13T15:59:32Z",
  "originalAppUserId": "228ee38c",
  "allExpirationDates": {
    "fm_30_1m_10d0": "2025-01-13T16:04:26Z"
  }
}

 


jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 167 replies
  • January 13, 2025

@a_m4n Looking at the attached customerInfo, it looks like the purchase and expiration dates are within the hour, with the latestPurchaseDate a few minutes before the expiration date. I’m assuming you made the purchase and immediately saw isActive is false, before the expiration date? If so, we’ll be happy to dig into our logs for this if you email us


  • New Member
  • 2 replies
  • January 14, 2025

Hi ​@jeffrey_bunn, that’s exactly what happened. Have create support ticket as suggested.


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