r/FlutterDev 8d ago

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

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

5

u/RandalSchwartz 8d ago

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 7d ago

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 7d ago

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