Hello,
I have read and tested but I would like to be sure if i have well understood, please. If a service has to run always and to be sure it runs on all Android versions, I have to :
- start the service as it is with the new AutomaticForegroundMode
- in Service_Start :
1) StopAutomaticForeground
2) Prepare a notification using NB6
3) put the service in foreground mode again using : Service.StartForeground
4) acquire a PartialLock
If the app is swipped, as we don't have Sticky services anymore, I have to restart the service from Starter / Service_TaskRemoved.
Please, is this correct ? Many thanks
I have read and tested but I would like to be sure if i have well understood, please. If a service has to run always and to be sure it runs on all Android versions, I have to :
- start the service as it is with the new AutomaticForegroundMode
- in Service_Start :
1) StopAutomaticForeground
2) Prepare a notification using NB6
3) put the service in foreground mode again using : Service.StartForeground
4) acquire a PartialLock
If the app is swipped, as we don't have Sticky services anymore, I have to restart the service from Starter / Service_TaskRemoved.
Please, is this correct ? Many thanks