nextcloud / files-clients

1 stars 0 forks source link

Push notification to update files #43

Open tobiasKaminsky opened 1 year ago

tobiasKaminsky commented 1 year ago

@AndyScherzinger and me brainstormed a bit how to enhance sync on Android or iOS. He had the idea to use push notification to inform app about file changes.

On Android we store state of a folder in DB: before

after:

nickvergessen commented 1 year ago

Just for the record, the text length we are able to transmit is rather short ~150 chars (200 total - some meta overhead). Also they are not always reliable, but the last etag check would still catch that and proceed as of now, right?

The other question that arises for me is scaling. If a folder is changed on the company instance, hundreds of pushes will have to be prepared and performed, just to have an eventually improvement later on.