Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SpeziAccount @AccountKey macro to store user meta data #68

Closed
1 task done
nriedman opened this issue Aug 20, 2024 · 0 comments
Closed
1 task done

Use SpeziAccount @AccountKey macro to store user meta data #68

nriedman opened this issue Aug 20, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@nriedman
Copy link
Contributor

Problem

At the moment, we manage notification settings via a custom UserMetaDataManager that listens to changes in the User document in Firestore and record information like organization affiliation and notification preferences. However, with the new version of SpeziAccount, this user meta might lend itself to being represented as @ApplicationKeys instead.

Solution

See if @ApplicationKeys would be a good fit for the use meta data, and if so replace the UserMetaDataManager with these macros. Update the settings views in the Account Sheet to use built in SpeziAccount views.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines
@nriedman nriedman added the enhancement New feature or request label Aug 20, 2024
@pauljohanneskraft pauljohanneskraft linked a pull request Sep 12, 2024 that will close this issue
1 task
@pauljohanneskraft pauljohanneskraft self-assigned this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants