There is a problem with background jobs when converting to targetSdkVersion28 and running on a Samsung S10e with Android version 9.
Apps that runs fine in the background under targetSdkVersion 26 stops nearly immediately with 28.
This happens within a couple of minutes from you select the phone's main screen using the home button.
No better if you put the screen to off with the power button.
Logs shows messages like:
** Service (servicetimer3) Destroy **
** Service (starter) Destroy (ignored)**
** Service (httputils2service) Destroy **
Is there something special with the starter service since the Destroy of that is ignored.
Tried the lock.PartialLock but it just ignores it.
Restarting the servicetimer3 service via a timer in the starter service just leads to it being destroyed again in seconds.
It is not a navigation app but one that uses mediaplayer to play a timetelling tune every halve hour, or every minute in Demo mode, utilizing a timer in the servicetimer3 service to change the tunes and get the playtime exact.
And now from August you have to submit updates to Google Play with targetSdkVersion 28
This is becoming like on iphone's where I have to bypass its unwillingness to let stuff run in the background by scheduling notifications.
Apps that runs fine in the background under targetSdkVersion 26 stops nearly immediately with 28.
This happens within a couple of minutes from you select the phone's main screen using the home button.
No better if you put the screen to off with the power button.
Logs shows messages like:
** Service (servicetimer3) Destroy **
** Service (starter) Destroy (ignored)**
** Service (httputils2service) Destroy **
Is there something special with the starter service since the Destroy of that is ignored.
Tried the lock.PartialLock but it just ignores it.
Restarting the servicetimer3 service via a timer in the starter service just leads to it being destroyed again in seconds.
It is not a navigation app but one that uses mediaplayer to play a timetelling tune every halve hour, or every minute in Demo mode, utilizing a timer in the servicetimer3 service to change the tunes and get the playtime exact.
And now from August you have to submit updates to Google Play with targetSdkVersion 28
This is becoming like on iphone's where I have to bypass its unwillingness to let stuff run in the background by scheduling notifications.