Skip to main content
Question

CloudKit RecordName as RevenueCat User ID

  • January 25, 2023
  • 1 reply
  • 64 views

Forum|alt.badge.img+2

Hey All, instead of having RevenueCat create an anonymous user ID for every person that starts a subscription, I want to use the CloudKit recordName for the RevCat user ID so that I can match up the user. Currently, I have the RevCat implementation happening right when the app launches in the init {}. How should I think about fetching the CloudKit recordName before RevCat Purchases.configure(withAPIKey: “”, appUserID: “”) is called? Thanks for any help.

1 reply

Forum|alt.badge.img+7
  • Dedicated Contributor
  • 62 replies
  • January 27, 2023

Hi Andy, I’m not familiar with the CloudKit RecordName, but waiting to call configure until after you have the RecordName (appUserID) is the way to go about it. This will ensure no anonymous ID is created on configure. You can also check out this blog post if you want to never see any anonymous App User ID’s.


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