Asses impact of the new Data sync foreground service timeout behavior when targeting Android 15
Categories
(Firefox for Android :: Downloads, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox132 | --- | fixed |
People
(Reporter: mcarare, Assigned: mcarare)
References
Details
(Whiteboard: [fxdroid][group1])
Attachments
(1 file)
https://developer.android.com/about/versions/15/behavior-changes-15
Data sync foreground services are allowed to run only 6 hours per 24 h period.
This would apply to our downloads service.
An alternative would be migrating to an alternative API: https://developer.android.com/about/versions/15/changes/datasync-migration
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Fenix::Accounts and Sync' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
This note points to this potentially not being an issue for the downloads service, the only one with dataSync service type in our apps:
Note: The 6-hour time limit is shared by all of an app's dataSync foreground services. For example, if an app runs a dataSync service for four hours, then starts a different dataSync service, that second service will only be allowed to run for two hours. However, if the user brings the app to the foreground, the timer resets and the app has 6 hours available.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 3•1 year ago
|
||
The note above limits the scope of this issue to making sure the download service calls stopSelf when it reaches timeout. The other improvements, perhaps also including migrating to another API will be considered part of 1904019.
| Assignee | ||
Comment 4•1 year ago
|
||
This avoids app crashing with RemoteServiceException when timeout is reached.
See https://developer.android.com/about/versions/15/behavior-changes-15#datasync-timeout.
Comment 6•1 year ago
|
||
| bugherder | ||
Description
•