question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android Unable to retrieve location after first retrieve location

See original GitHub issue

after first retrieve there’s error log ‘2 Unable to retrieve location’

[Mon Jun 08 2020 20:17:59.373]  LOG      Home.js line 103 position
[Mon Jun 08 2020 20:17:59.408]  LOG      Home.js line 105 latitude: -0.4936573 | longitude: 117.1535063
[Mon Jun 08 2020 20:17:59.552]  LOG      Home.js line 135 response
[Mon Jun 08 2020 20:18:30.584]  LOG      2 Unable to retrieve location
[Mon Jun 08 2020 20:19:38.203]  LOG      2 Unable to retrieve location
[Mon Jun 08 2020 20:20:21.852]  LOG      2 Unable to retrieve location

and if i put googlePlayServicesVersion = “17.0.0” that make comflict with react-native-camera so i not put that on build.gradle, is there any sugestion?

react-native-cli: 2.0.1 react-native: 0.62.2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
anhdevitcommented, May 16, 2021

Check set location in debug of simulator Screen Shot 2021-05-16 at 16 08 53

4reactions
DeVoresyahcommented, Jul 6, 2020

I got this on iOS only, works fine on Android

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage your Android device's location settings
Turn location on or off for your phone · Swipe down from the top of the screen. · Touch and hold Location ....
Read more >
Attempting to retrieve location on Android Device... works on ...
It requires constant access to location. I followed a tutorial online and completed the code underneath. This code works perfectly for my ...
Read more >
Get the last known location - Android Developers
Using the Google Play services location APIs, your app can request the last known location of the user's device. In most cases, you...
Read more >
Geolocation.getCurrentPosition() - Web APIs | MDN
The Geolocation.getCurrentPosition() method is used to get the current position of the device.
Read more >
What to do if you get an alert that an AirTag, Find My network ...
Turn Significant Locations on to be notified when you arrive at a ... First, check on the Find My app if you're able...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found