Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Make profiles/settings/playlists/history.db available to user on Android #152

Closed
3 tasks done
MartFab opened this issue May 16, 2023 · 5 comments
Closed
3 tasks done

Comments

@MartFab
Copy link

MartFab commented May 16, 2023

Guidelines

  • I have searched the issue tracker for open and closed issues that are similar to the feature request I want to file, without success.
  • I have searched the documentation for information that matches the description of the feature request I want to file, without success.
  • This issue contains only one feature request.

Problem Description

I was not able to find this four files (profiles.db, settings.db, playlists.db and history.db) on a android 13 (LOS20) installation.
On desktop this files are available to user so it is possible to sync this files using third-party tools (like syncthing) for exemple.
If it was the same on android it could help sync subscription and playlist across devices.

Proposed Solution

I'm not sure of implications but it seems possible to have a filesystem interface on cordova using cordova-plugin-file.

Alternatives Considered

Regarding the "sync" part : i know we can already import/export data from/to FreeTubeCordova but having the ability to sync this file will simplify a lot the day-to-day use.

Regarding solution : i know nothing about cordova but other filesystem interface look like more limited.

Issue Labels

ease of use improvement, support for external software

Additional Information

No response

@vdbhb59
Copy link

vdbhb59 commented Oct 30, 2023

Not just this, with the latest build the whole database vanished and now does not get imported from the desktop exports. I lost everything even with backups.

@MarmadileManteater
Copy link
Owner

This issue has moved higher up on my priority list because I have plans to change the domain the app is hosted on again (from localhost to file://). If I don't address this issue before changing the domain, everyone will lose their subscriptions upon upgrading, so this is probably the very next thing I will address with FreeTubeCordova before the major update I am working on. My plan is to write my own localforage substitute which writes to the android filesystem which nedb will import in place of the regular localforage which stores items in localstorage.

@MarmadileManteater
Copy link
Owner

I was able to override localforage through webpack with no issue, and it seems like it is writing and reading to the data folders now. It is pretty 🧊cool to be able to clear to localstorage and have the app data persist.

IMG_20240202_135913

@MarmadileManteater
Copy link
Owner

The database files should now be located at /Android/data/io.freetubeapp.freetube.nightly/ when booting up the latest nightly on android. I'm going to test it a little more before releasing it proper, but it exists now.

MarmadileManteater added a commit that referenced this issue Feb 3, 2024
- db files are stored in the filesystem (same place as in cordova)
- shouldn't wipe the user data when the webview domain changes in the future update

#152
@MarmadileManteater
Copy link
Owner

This issue should now be resolved by release 0.19.2.110.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants