using start_redeliver_intent to allow the system to restart killed sync services
- memory restricted devices may have the sync service destroyed whilst in progress causing future sync to no longer be scheduled
This commit is contained in:
parent
ace9f89569
commit
b1afc26d65
|
@ -105,9 +105,8 @@ abstract class SyncService : Service() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// It's ok to be not sticky because we will explicitly start it again on the next alarm?
|
||||
return START_NOT_STICKY
|
||||
// Attempt to continue scheduling syncs after killed service is restarted
|
||||
return START_REDELIVER_INTENT
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
|
|
Loading…
Reference in New Issue