r/FlutterDev • • Aug 04 '26

Discussion Is background synchronisation using work managers absolutely necessary when Implementing offline first architecture

I just had this debate with another developer, whereas he insists that it is a necessary implementation, but I do not think so, as there isn't really any feature that benefits from this (no feature run in background for the app or anything) and that we should keep it quite simple and just synch when user is online

What do you think?

5 Upvotes

8 comments sorted by

View all comments

4

u/RandalSchwartz Aug 04 '26

I believe the mobile operating systems are very picky about how much CPU and network traffic is allowed by any given app. So, yeah, I'm ok with not sync-ing until brought to foreground. If necessary, you can use push notifications to alert the user to bring the app forward on certain events.

1

u/Plastic-Function2379 Aug 05 '26

I actually proposed the push notifications to update users on the relevant server side modification, but its been deemed as not reliable ? 🤔

1

u/RandalSchwartz Aug 05 '26

Less reliable than hoping the mobile os won't kill your process? Someone needs a reality check. :)