Artificial-Pancreas / iAPS

MIT License
164 stars 682 forks source link

Feature Request: Enter Token dialogue #737

Open scrappy opened 3 weeks ago

scrappy commented 3 weeks ago

On a fresh install of iAPS on a phone, before anything else happens, a dialogue box should pop up that allows someone to cut-n-paste ( or enter ) their token, at which time the app would go out to the stats server to pull down and install their configuration, before anything else happens.

Use case scenario: I'm on holidays, my phone is destroyed so I deploy iAPS onto my partners phone ... as long as i have the token, I could have all of my settings restored to that phone.

Same thing could apply if someone has been using a specific build of the app, and suddenly switch over to a shared build with someone else ... they could restore their settings to the last state.

This only work if full stats is turned on, of course, since it requires sending in all settings, but they are stored in json, so setting up a 'retrieve' script is simple ...

scrappy commented 3 weeks ago

Side note ... if we could figure out a way of backing up critical CoreData information and restoring that?

not thinking 90 days worth of data, but if i changed phones, how much data ( and what data? ) would I need to be able to restore to the phone to provide minimal history needed for features to work properly? 24h? 7 days? Even if only updated every 12 hours, you'd still be ahead of a totally blank slate ...

Jon-b-m commented 1 week ago

I will create an onboarding view for first time users, where you can import all saved settings, provided you have any.