I am using FusedLocationProvider API to register some Geofences with PendingIntent, when my app gets started (app was manually killed to trigger this behavior) via Geofence event, I start a background service to do some work.
In this Service I create a separate background thread to do some long running tasks and I acquire a wake-lock so that I am sure my tasks are completed. The Service keeps running for longer period of times (30 - 50 minutes) even though It shouldn't be. It shouldn't be white-listed and keep itself running for longer period of times according to my understanding of recent changes in Android O.
Is it desired behavior or some kind of bug with PendingIntents waking up the app and then it's treated like white-listed even though those Intents are not for Notifications (i.e anything which user can see).
Or these intents falls into category of "Receiving a broadcast, such as an SMS/MMS message." as mentioned here in documentation