Skip to main content

I want to use only custom app user id’s in my iOS SwiftUI app, but also delete users.

 

Per the documentation, logging out will cause creation of anonymous app_user_id: 

To only use custom App User IDs, you must take care not to generate any anonymous App User IDs in the SDK. Anonymous App User IDs are generated when the SDK is configured without a provided custom App User ID, and are also created on logOut() as mentioned above.

https://www.revenuecat.com/docs/customers/user-ids#how-to-only-use-custom-app-user-ids

 

But in order to delete users in RevenueCat programmatically to comply with Apple’s User Deletion Policies, I must log out the user in addition to deleting them:

There are two ways to delete a customer in RevenueCat – manually through the customer dashboard or programmatically via the REST API. With either approach, you should make sure that the customer is also logged out through the RevenueCat SDK in addition to being deleted or they’ll get recreated on the next app launch.

https://www.revenuecat.com/blog/engineering/app-store-account-deletion/

 

I see contradictory statements here. Also do I log out and then delete, or delete and then log out? Any help would be greatly appreciated here.

 

Thanks

Hello,

It should be perfectly fine to call logout, then delete. An anonymous user ID is created because RevenueCat requires some user ID to be available to attach purchases to. But anonymous user IDs can’t be traced back to an individual unless you collect information like an email address, phone number, etc. So it should be perfectly fine to log out first, then call delete. Did you have any other concerns with the process that I missed?