Comments (1)
Hi @g123k!
The way background tasks work:
- immediately setting the local product with the new changes
- immediately giving back to the user the control of the app
- putting a task in a queue, which is re-run on specific common events (e.g. opening a product page)
I don't know the "weird problems" you're talking about: could you please be more specific?
- If it's that the server isn't updated at the same time as the app, that's not a bug, that's a feature: we can update products offline or when the server is down.
- If it's that local data seems to change, it happens if the server doesn't change the data itself, cf. #5394: the user changes the local data, the user sees the changed data locally, the server is called but doesn't change the data, the app downloads the unchanged data, the local data reverts to the value before the user change.
Would it be worth to let users know a bit about background tasks, with a sort of access to the current queue? Definitely. I'm pretty sure most of them have already downloaded a file and seen the download progress.
Some solutions to have more active processes:
- splitting into several queues - e.g. one queue for the "simple" background tasks and one queue dedicated to heavy stuff like photo upload
- calling
BackgrounsTaskManager.run()
in more cases
from smooth-app.
Related Issues (20)
- Bad logos for "Signal a problem" in offline
- Empty chip in some cases on price page HOT 1
- Add a pathway to price per kilo HOT 3
- The photo list performs very badly HOT 1
- Crash reports on category addition (and possibly others) on iOS HOT 1
- White on white onboarding? HOT 2
- Add an item about Data Quality in the Contribute Section HOT 2
- F-Droid build failed HOT 3
- The app could disallow Emoji’s in brand names HOT 1
- Hotfix: 4.15.1 HOT 2
- Allow disabling deeplinks in iOS HOT 1
- In editing section, add a deeplink to Hunger Games logo
- Create a "Contribute to your country" link HOT 6
- Add an accessibility setting for visually impaired users
- (Brainstorm) Add a page listing all the features of the app, with icons, and the ability to deep-dive HOT 2
- Upgrade dependencies of the project HOT 1
- Harmonize search screens
- Analytics/Matomo: Add a parameter if the user is logged in
- Add events added to the code in analytics.openfoodfacts.org
- bug on opening deep link for login from nutripatrol
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smooth-app.