lockwise-android icon indicating copy to clipboard operation
lockwise-android copied to clipboard

App syncs every time it's brought to the foreground

Open agi90 opened this issue 7 years ago • 7 comments

On my phone, Lockwise syncs whenever the app is brought to the foreground, which makes it very hard to use (especially on a slow connection). Right now it even syncs when the screen turns off and on.

I'm not totally sure if this is the intended behavior or if I hit a bug but I'm happy to add whatever debugging information you might need.

Phone: Samsung S10e Version: Latest from playstore (6/4)

agi90 avatar Jun 04 '19 16:06 agi90

Quick triage: currently by-design but high frequency, but not a great user experience (medium impact). Assigning P2.

Can fairly easily check and see if synced in the past X minutes, because users can still manually force a sync.

Can also consider ways to make the UI/UX available and responsive so as to not block the user.

devinreams avatar Jun 06 '19 15:06 devinreams

I'd like to pose a one-time, 24hr default timer for automatically syncing, since we also have the ability for someone to trigger a manual sync if needed.

There would also be some good improvements to make around caching/storing logins for instances when sync fails, so access can still be available for 'last-synced' logins, but that's a separate issue.

changecourse avatar Jun 06 '19 16:06 changecourse

If we opt for the "delay" strategy, I think we should also add a new parameter in the settings screen. In this way, the user can manage the delay interval.

faogustavo avatar Jun 11 '19 13:06 faogustavo

@changecourse I'm making an assumption here that we should differentiate the manual sync and the auto sync in that performing a manual sync ~~will not~~ will change the next automatic sync time. what's your feeling about that? should manually syncing push back the next automatic sync time?

sashei avatar Jun 12 '19 20:06 sashei

@sashei That's an interesting question... I could go either way, but my initial take would be that a manual sync would reset the timer.

changecourse avatar Jun 12 '19 21:06 changecourse

@faogustavo that's a good suggestion; I think it's out of scope for this ticket but I've made a follow-up one: #757

sashei avatar Jun 12 '19 22:06 sashei

Thanks for fixing this!

agi90 avatar Jun 14 '19 23:06 agi90