Solved

Restoring purchase on iOS gives incorrect subscription data in PurchaserInfo

  • 12 October 2022
  • 1 reply
  • 83 views

Userlevel 1
Badge +9

We have an iOS account that is not able to restore purchase. This seems to be spurious where restoring isn’t broken for everyone, but we have had some other bug reports for iOS as well.

 

This particular user restarted their account where their current appUserId is `IGw_6GzTANk5oN3yJWi5MXkCg4n1`, but it was a different appUserId when they originally purchased the subscription. We are using Flutter, and I’ve pasted the production `PurchaserInfo` object that we get. For some reason RevenueCat seems to believe the subscription expired 9/29/2022 but the user’s App Store shows it should expire 3/20/2023.

 


final PurchaserInfo purchaserInfo = await Purchases.restoreTransactions();


// PurchaserInfo we logged from testing in production
PurchaserInfo(entitlements: EntitlementInfos(all: {
plus: EntitlementInfo(identifier: plus, isActive: false, willRenew: false, latestPurchaseDate: 2022 - 09 - 29 T12: 46: 56 Z, originalPurchaseDate: 2022 - 09 - 29 T02: 43: 03 Z, productIdentifier: finch_plus_yearly_1, isSandbox: true, ownershipType: OwnershipType.purchased, store: Store.appStore, periodType: PeriodType.normal, expirationDate: 2022 - 09 - 29 T13: 46: 56 Z, unsubscribeDetectedAt: 2022 - 09 - 29 T13: 47: 22 Z, billingIssueDetectedAt: null)
}, active: {}), allPurchaseDates: {
finch_plus_yearly_1: 2022 - 09 - 29 T12: 46: 56 Z
}, activeSubscriptions: [], allPurchasedProductIdentifiers: [finch_plus_yearly_1], nonSubscriptionTransactions: [], firstSeen: 2022 - 09 - 27 T23: 09: 50 Z, originalAppUserId: IGw_6GzTANk5oN3yJWi5MXkCg4n1, allExpirationDates: {
finch_plus_yearly_1: 2022 - 09 - 29 T13: 46: 56 Z
}, requestDate: 2022 - 10 - 12 T00: 09: 53 Z, latestExpirationDate: 2022 - 09 - 29 T13: 46: 56 Z, originalPurchaseDate: 2013 - 08 - 01 T07: 00: 00 Z, originalApplicationVersion: 1.0, managementURL: null)

 

 

icon

Best answer by Miguel Carranza 13 October 2022, 01:03

View original

1 reply

Userlevel 2
Badge +6

Hi Steph, 

 

Thanks so much for being an active member of RevenueCat’s community. Given that this is a very particular case, I have escalated it so that an engineer can take a closer look!

Reply