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

Any chance for an option to use the app offline? #5

Closed
noodlejetski opened this issue May 21, 2020 · 5 comments
Closed

Any chance for an option to use the app offline? #5

noodlejetski opened this issue May 21, 2020 · 5 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@noodlejetski
Copy link

I've just found Grocy after it showed up in the IzzyOnDroid F-droid repo, and absolutely fell in love with the design. Unfortunately, I currently don't have the means to run a self-hosted instance. Would it be possible in the future to add an option to just use the app with a local database stored on my device?

@dominiczedler
Copy link
Collaborator

dominiczedler commented May 21, 2020

Thank you for your compliment :)
Sorry, this is not possible because we use the API of the grocy server – so the server does all the stuff and the app only sends requests to it.
It would be way too much work to implement the server functionalities in this app.
Maybe you can find someone who is willing to host you an instance of grocy?

@noodlejetski
Copy link
Author

ah, that's a shame, but I get it. I guess I'll just have to look into hosting it myself some time in the future, then. one more excuse to get an RPi :)

@patzly patzly added enhancement New feature or request wontfix This will not be worked on labels May 22, 2020
@timokau
Copy link

timokau commented Jun 4, 2020

Wouldn't it be possible to embed the grocy-server, i.e. just run it on the phone and interact with it on localhost? Its not quite the same, but for example the syncthing app does something similar.

I'd probably not use this feature myself (since I would also want to access the data on my desktop), just saw this issue and thought I'd leave the idea here. It would definitely decrease the friction of adoption.

@dominiczedler
Copy link
Collaborator

Thanks for this suggestion! But I didn't find an easy way to set up a HTTP server together with PHP and SQLite on Android in an App.
Even if this would work, I'm sure it would be still very slow. And if the server should stop when the App closes, every App start would take a while because of the server.

@timokau
Copy link

timokau commented Jun 4, 2020

But I didn't find an easy way to set up a HTTP server together with PHP and SQLite on Android in an App.

Yes, I can imagine setting that up would be a bit of a pain. I'm not sure about the slowness though, modern smartphones are pretty fast. And as I mentioned, syncthing does something similar. I don't know if any PHP is involved, but they have a native binary that stays running in the background and also has a web interface.

I can understand that you may not want to work on this, but maybe it helps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants