Periodic library sync can't start its foreground notification on Android 12+
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start with the periodic MediaImportWorker and its setForeground call, then compare it with the expedited import work added in #1027 and the device steps in docs/testing/device-checks.md. First choose between handing off to the expedited unique work and dropping setForeground for background syncs, since the issue leaves that open. Done means the chosen path runs on API 31+ without ForegroundServiceStartNotAllowedException, verified on a device.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow-up to #1027. Sync now now runs as expedited WorkManager work with a dataSync foreground notification, but the periodic MediaImportWorker path is unchanged: it calls setForeground from a plain (non-expedited) periodic job, which Android 12+ refuses with ForegroundServiceStartNotAllowedException; the worker only logs it. Forcing the job 3x on an emulator (cmd jobscheduler run -f) showed no notification.
Consequence: a long periodic sync has no foreground protection and no progress notification on API 31+. Options: have the periodic worker hand off to the expedited unique import work, or accept no notification for background syncs and drop the setForeground call there. Needs a device check either way (docs/testing/device-checks.md has the #1027 lines).
- Lingua principale
- Kotlin
- Stelle
- 233
- Fork
- 28
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di timusus/Shuttle2
-
enhancement impact:U1 P3 reach:R2 size:S
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
bug impact:U2 P2 reach:R2 size:S
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
enhancement impact:U1 P3 reach:R2 size:M
Difficoltà 3/5 1-2 giorni Idoneità per principianti 75/100
-
enhancement impact:U1 P3 reach:R2
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
-
domain: artist online image lookup requires a MusicBrainz id; #781's name-match branch is missingApertabug impact:U2 P2 reach:R2 size:S
Difficoltà 3/5 1-2 giorni Idoneità per principianti 64/100
Tutte le issue di timusus/Shuttle2
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
NucleusFramework/Nucleus#912 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 71/100
streetcomplete/StreetComplete#7364 · 7 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
assertions 🔍
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Wallpaper change intervalApertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
openwallet-foundation/multipaz#2161 ·
I maintainer di solito rispondono entro 1 giorno