Open 1priyank1 opened 6 years ago
Have you resolved this issue because i'm also getting the same.
Always getting the same null inLocationResult.extractResult(intent);
Any Fix?
have you resolved this issue ? or is there anyone any idea what can cause that ?
I ran into this issue and was able to figure it out with trial and error. For me, it was because I was putting extras in the pending intent. Apparently, the locations are stored in the extras, and will not be written there if data already exists.
If you need to put extra data, you can throw it in the Data URI parameter, but it's pretty hacky. I'm hoping they solve this soon.
@parkskier426 thank you for your answer. I removed the put extras in the pending intent and this is the solution what I am looking for. thanks again.
Getting
LocationResult
null inonReceive
method ofLocationUpdatesBroadcastReceiver