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

Local database #41

Open
davidhedlund opened this issue Apr 3, 2017 · 1 comment
Open

Local database #41

davidhedlund opened this issue Apr 3, 2017 · 1 comment

Comments

@davidhedlund
Copy link

You need a internet connection to use TripSit but not everyone has access to it all the time.

Have you considered making https://f-droid.org/repository/browse/?fdfilter=tripsit&fdid=me.tripsit.tripmobile offline compatible?

@EddieCurtis
Copy link
Contributor

Hi @davidhedlund

Thanks a lot for your feedback. We have considered making a local database but chose not to as we don't want people using out of date information. Due to the nature of the info on this app we need to make sure that people are aware of the latest research and advice about chemicals, where possible.

That is why at the moment we require an internet connection for the first search of a substance, but after that point the information can be cached for a configurable duration, depending on how important it is for the user to have up to date info.

This all means that we can give people up to date information without having them update the app.

I think the only change we could possibly make to improve things would be to have the app download the latest information for all substances upon loading if there is an internet connection, then otherwise falling back to the cache if it is still valid, then if the cache is out of date giving an error. I will consider developing this, or if you or someone else wants to do it then I will review a PR.

Thanks.

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