RADAR-base / radar-prmt-android

Application to be run on an Android device to interact with the wearable devices & phone sensors for passive data streaming
Apache License 2.0
22 stars 26 forks source link

Add App Reset functionality in the settings #145

Open yatharthranjan opened 3 months ago

yatharthranjan commented 3 months ago

There should be functionality to clear the cache and app data within the app settings. This is useful for using the app in clinic or hospital environments where the same device and app instance are used with multiple patients, so the doctors can reset and re-scan the QR code of new patients easily (avoiding having to go into the Android settings). This is already a part of the aRMT app.

Related: It would also be nice to show the settings button in the app's header instead of the 3-dot options.

Alternative solution: Have a scan QR code again option directly in the app or the app's settings page. Using this, the clinician does not need to reset the app, as they can directly scan a new QR code for another patient. The app would still clear the data for previous patients on a new QR code scan

this-Aditya commented 3 months ago

While the functionality to clear the application data would indeed reset the app to its initial state, but clearing app data results in the loss of all granted permissions and forces the app to stop,.

Therefore, a more appropriate solution would be to implement a logout functionality. This would allow the user to log out from the app and redirect them to the login screen.

Added the related issue to radar-commons-android => https://github.com/RADAR-base/radar-commons-android/issues/457