Skip to main content
Solved

Restoring purchase on iOS gives incorrect subscription data in PurchaserInfo

  • October 12, 2022
  • 1 reply
  • 92 views

Steph
Forum|alt.badge.img+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)

 

 

Best answer by Miguel Carranza

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!

View original
Did this post help you find an answer to your question?

1 reply

Miguel Carranza
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 84 replies
  • Answer
  • October 12, 2022

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


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