hi
apple is informing everyone that has account creation option in his app to allow account deletaion
and from 30/6/2022 apps updates that have account creation and do not support account deletion will not be accepted.
what does it mean? if i use in my app "
Apple auth"? or "
google auth"?
and how can i delete the account after it is already signed in?
thanx
I've just updated one of my apps to comply with the new requirements. I use an email address for iOS logins (although the message from App Review did say the same applies to accounts using Sign in with Apple). When you authenticate using Firebase, it stores the Identifier (ie: the user name / email address) & the User UID. I use Firebase Authentication to provide access to Firestore & Storage, so to comply with the requirement I added functionality to remove the user details from Authentication, delete any files in Storage & remove their Firestore database. I then log the user out of Firebase & remove their credentials from the keychain.
Before carrying out the deletion, I also give the user the option of copying their data to their local device. In the case of Firestore data, I copy it into a SQLite database using Room.
Fortunately, Firebase have made it easy to delete user data by providing a handy extension called
Delete User Data - which will remove all user data if the user is deleted from Authentication. To remove the user from Authentication, you use the
deleteWithCompletion method. Once you've deleted the user & removed their data you can just log them out & remove their credentials from the keychain.
- Colin.