NMF-earth / nmf-app

Understand and reduce your carbon footprint 🌱 iOS & Android.
https://nmf.earth
GNU General Public License v3.0
498 stars 156 forks source link

Export / Import data #206

Closed PierreBresson closed 3 years ago

PierreBresson commented 3 years ago

Since the app doesn't rely on any backend, if a user looses its phone, all data is gone. To solve this issue, let's add a manual save mechanism.

In settings, add two row :

NB1 : this is could be a large and complicated task, probably not suitable for beginners. NB2 : due to spam, I won't assigned this task to anyone without previous contribution to this repo but PR are accepted, just have a look if there is no PR up and if this issue is not assigned to anyone.

settings
adamfitzgibbon commented 3 years ago

I'm going to take a crack at this one.

adamfitzgibbon commented 3 years ago

Although thinking about this solution a bit, I'm not sure having a static file would be that useful to the user. They'd basically have to constantly save the backup file to a separate device to be protected. I know on iPhone apps can backup data in icloud and I would assume there's something similar for Android. Would doing something like that be a little bit more useful?

PierreBresson commented 3 years ago

Let's try to make small issues in order to avoid giant PR. importing/exporting a static file is the first step. I don't know what's best in term of form (.json or xml etc) so it's up for discussion

In another issue:

We could have an another screen after pressing on import/export data showing the following : if(ios)

if(android)

A lot of users have icloud/drive, but is it always the case? Does having appleID means that you get icloud storage? (same question for google drive).

We decide that dropbox is less toxic compare to apple/google and will make our life easier (one service to implement instead of two). But not all user have dropbox and this company is clearly not on the rise so is it worth investing time on something that is slowly dying...

We find an open source alternative to dropbox (webDav? see buttercup)

Buttercup is proposing this kind of mechanism.

PierreBresson commented 3 years ago

https://github.com/NMF-earth/nmf-app/pull/263