I am trying to fetch locations, specially when app is in background using
"LocationServices FusedLocationApi requestLocationUpdate - Using pending intents".
I am calling an IntentService class in this pending intent and its working just perfectly fine. That is after every regular intervals, my intent service is getting called, but here issue is I am not receiving "Location" class object in the received intent.
I have tried check every available key in intent bundle object, also tried the LocationResult class's hasResult()
and extractResult()
methods also, but no luck. I am not receiving the location in the intent that i am receiving in "onHandleIntent()
" method of my service class.
If someone has working source code of this, please share. Thank you.