DP-3T / dp3t-sdk-android

The DP3T-SDK for Android
Mozilla Public License 2.0
241 stars 94 forks source link

Possible issue in periodic Sync schedule #210

Open pantic79 opened 4 years ago

pantic79 commented 4 years ago

According to this Google recommendation ExistingPeriodicWorkPolicy.REPLACE must be used when calling to enqueueUniquePeriodicWork method from Workmanager in order to ensure that the jobs are rescheduled. As far as I understand this could prevent infected keys from being downloaded from server and therefore some users would'n't be notified for possible risk contacts. Could you consider to change this on SyncWorker class or is there some reason to keep the ExistingPeriodicWorkPolicy.KEEP policy used currently?

Thanks.