169 похожих чатов

Hi everyone, how's it going? I'm working on a Flutter

app with a data management system. How can I enforce data synchronization when the app comes back online? Please someone can help me

6 ответов

8 просмотров

Just refresh on applifecycle state change

Darrel- Автор вопроса
Юрий
Just refresh on applifecycle state change

Here, it's more about displaying, or even just refreshing. Imagine a task management application (to-do app): when you are not connected, the data is directly saved in the local database. As soon as you connect, the data is immediately saved on a remote server.

Darrel
Here, it's more about displaying, or even just ref...

This is ok, but for the personal use only, in the group its not applicable

Darrel- Автор вопроса
Юрий
This is ok, but for the personal use only, in the ...

Ok thank you. But why doesn't my question have a place here?

Darrel
Here, it's more about displaying, or even just ref...

Try creating a bool field to track the uploaded items

you can save data that needs to be uploaded locally and when the app opens, check for connection. if connected, start operation to upload it. read about read through and write through strategy for caching. this might be helpful.

Похожие вопросы

Обсуждают сегодня

Типа вызывать GetParent и проверять на соответствие GetModuleHandle?
The Bird of Hermes
67
Do any of you guys have interesting projects one could join? I'm a Middle Full-Stack developer (JS/TS, React & Node)
Lev Shapiro
40
$res = json_decode($наша строка из респонса); $res1 = array_map(fn($o) => $o->name, $res->breadcrumbs[0]->entities); Как такое будет на Хаскеле?.. В начале весь джейсон, в ко...
Хаскель Моисеевич Гопник
27
В чем сила брат, в NASM или FASM?
Isaac Kleiner
18
Вопрос по диагностике ошибок (я знаю в чем, в данном конкретном примере, я знаю, как исправить, пример модельный, понятно, что в реальности бывает намного запутаннее). module...
ⰄⰎⰋⰐⰐⰑⰛⰤⰧⰧⰩⰄ ⰊⰑⰁⰓⰡⰛⰦⰕⰫ
11
Хтось використовував Vapor на Windows?
Jaroshevskii
15
А чем вам питонисты не угодили?😂
.
79
Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
52
Тут кста кто-нибудь NeoVim использует?
Simple Sorcerer
13
Оба варианта в целом подходят, но скорее создание конфликтной ситуации (на пустой основе). В прошлый раз он сказал мне про ESP32, я забыл про этот микроконтроллер, ошибся, я п...
КТ315
4
Карта сайта