Back

[SOLVED] Updating Preferences is not working

  • 1
  • Android
  • Accounts
retr122
25 Jun, 2023, 10:08

I'm trying to update preferences in new account right now and this don't works correctly. The new account is created, session also, but Prefs isn't update. This don't returns any errors.

TL;DR
The user was having trouble updating their preferences in a new account. They mentioned that they tried using account.getSession and it solved the problem. Another user suggested that they might be missing a call to account.get() after creating the session. There was no error being returned, but the preferences weren't updating correctly. The solution provided was to use account.getSession to fix the issue.
Drake
25 Jun, 2023, 14:35

According to this, it doesn't look like you're calling account.get() after successfully creating the session (in the create email session callback)

retr122
25 Jun, 2023, 14:37

I rewrite this with account.getSession and it works correctly.

Drake
25 Jun, 2023, 14:43

[SOLVED] Updating Preferences is not working

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more