Skip to main content
Solved

Is a purchase associated with a temporary user id after logIn?

  • September 5, 2021
  • 1 reply
  • 98 views

Forum|alt.badge.img+5

Hi,

The flow I want to use is:

  1. operate with anonymous user id
  2. have the user subscribe using the anonymous user id
  3. ask the user to sign in using apple sign in
  4. logIn passing apple’s user id

At this point I expect:

  1. the purchase to be associated with the new user id 
  2. the package and offering to be send down and reflect the new association and have the proper subscription information so purchaserInfo?.entitlements[RevenueCatConstants.entitlementID]?.isActive will read true

This is not happening. The package is empty. It doesn’t look like the subscription is being associated with the user id passed in through logIn. 

Is my understanding of the process correct? I’m looking at the table in https://docs.revenuecat.com/docs/user-ids and it seems like they should be merged.

 

thanks

Best answer by Todd Hoff

As part of the sign in flow I did a Purchases.shared.restoreTransaction and that did what I wanted. 

View original
Did this post help you find an answer to your question?
This post has been closed for comments

1 reply

Forum|alt.badge.img+5
  • Author
  • Helper
  • 17 replies
  • Answer
  • September 5, 2021

As part of the sign in flow I did a Purchases.shared.restoreTransaction and that did what I wanted. 


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