Issue : Activity recognition API has an intent service which will get the motion activities and will get as part of intent (onHandleIntent). When I changed my app to target android Oreo, the functionality behaves as below
- While app is in foreground, app detects activities.
- while app in background, it doesn't detect activities
I tried to change the intent service to JobIntentService but not working.
Can anyone help on this?
Thanks in advance.