How to store additional data like phone, location, and address while signing up.
- 0
- Databases
- Flutter
- Storage
- Accounts
do i have to use User Preference,
If its just small amount of information, then yes use the User Preference. But the User Preference has limit of 64KB for the total size, so if it bigger then that creating anouthr collection would be the best
yes its a small amount of data like three or four field with 50 words each
So User Preference well suit you
as i go through doc but not found how to implement.
To get the preference https://appwrite.io/docs/client/account?sdk=web-default#accountGetPrefs
To update https://appwrite.io/docs/client/account?sdk=web-default#accountUpdatePrefs
So you would do something like this
const prefs = await account.getPrefs();
prefs['phone'] = '1234';
await account.updatePrefs(prefs);
but how to create while sign up
For that create a function the listen to the event of user creation and then do something like this
users.updatePrefs('[USER_ID]', {});
Recommended threads
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...