Skip to main content

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?

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?


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": s],
"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": s],
"firstSeenMillis": 1736780912000,
"allPurchasedProductIdentifiers": s
"fm_30_1m_10d0"
],
"requestDate": "2025-01-13T15:59:32Z",
"originalAppUserId": "228ee38c",
"allExpirationDates": {
"fm_30_1m_10d0": "2025-01-13T16:04:26Z"
}
}

 


@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


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


Reply