View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0007446||Taler||wallet (TS core)||public||2022-11-07 16:30||2022-11-23 12:57|
|Priority||normal||Severity||minor||Reproducibility||have not tried|
|Target Version||git (master)|
|Summary||0007446: dev mode is not persisted after restart|
|Description||Service worker is a short lived process, so any setting on the wallet core should persist restart.|
|Tags||No tags attached.|
||should we add this into the wallet-core db?|
||Does it even make sense to persist dev-mode? I actually think turning it off on restart might be a good thing. Devs can re-enable, but having it on by accident might be bad...|
On iOS, Dev-Mode is persisted in the application settings, which is just two words of code preceding a variable definition:
@AppStorage("developerMode") var developerMode: Bool = false
Next time the app launches it will not init with false, but use the value for key "developerMode". If I delete the first two words, the app will fall back to false at launch - after reboot, or if the user manually kicked it off the background app list, or the user launched so many other apps while we are in the background that iOS runs out of memory and kills us - which could take days if the user doesn't launch many other apps. In this case they would maybe see Dev-Mode active for multiple days, and on other days falling back to inactive even within minutes (if they launch many other apps before coming back to us). Such unpredictability is not the best user experience - but OK, it's just developer mode...
> I actually think turning it off on restart might be a good thing.
Restart the browser yes, but service worker may restart (wiping out wallet memory) after short time.
I will implement saving the state in localStorage (the web version of marc's description) and sync wallet on startup.
|2022-11-07 16:30||sebasjm||New Issue|
|2022-11-07 16:30||sebasjm||Status||new => assigned|
|2022-11-07 16:30||sebasjm||Assigned To||=> Florian Dold|
|2022-11-16 18:55||sebasjm||Note Added: 0019428|
|2022-11-18 22:40||Christian Grothoff||Note Added: 0019452|
|2022-11-23 00:07||MarcS||Note Added: 0019473|
|2022-11-23 12:57||sebasjm||Note Added: 0019477|
|2022-11-23 12:57||sebasjm||Assigned To||Florian Dold => sebasjm|