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.

GPS Location not available

See original GitHub issue

I’m working on Android device (Nexus 5) and I didn’t receive any GPS from both: library and camera.

This is my options: const options = { title: 'Pick Picture', storageOptions: { skipBackup: true, path: 'images' } };

In AndroidManifest I have follow settings:

<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

This is the returned data when I try to take a picture: data:"data of my picture" fileName:"image-9dff3348-dbcc-4757-83a3-16e0c3e990db.jpg" fileSize:1538608 height:3264 isVertical:true originalRotation:0 path:"/storage/emulated/0/Pictures/image-9dff3348-dbcc-4757-83a3-16e0c3e990db.jpg" type:"image/jpeg" uri:"content://com.myapp.provider/app_images/Pictures/image-9dff3348-dbcc-4757-83a3-16e0c3e990db.jpg" width:2448

How can I check if location services are enabled for the app? Do I’m wronging somethings? Thank you!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gtslukcommented, Sep 9, 2018

when I use ImagePicker.launchCamera to take photo in IOS 11. The location metadata is lose. is it possible to pass the location information and by the option ?

1reaction
claudioviolacommented, Jun 24, 2017

@haitaoli thanks for support! I followed your suggestion and I setted maxWidth: 8000, maxHeight: 8000, but unfortunately I still don’t see any Gps data in file… Any idea?

Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

11 methods to fix Android GPS not working - Carlcare Service
11 methods to fix Android GPS not working · Turn off and on GPS again · Turn on and turn off Airplane mode...
Read more >
Android GPS Not Working? Here's How To Fix It
Android GPS Not Working? Here's How To Fix It · Move To A Different Spot & Be Patient · Is It Really a...
Read more >
If Maps isn't working on your Apple device
Turn on Location Services and Location Access for Maps. In the Settings app, tap Privacy, then tap Location Services. · Set the date,...
Read more >
How to Fix Android GPS Not Working Issue
How to Fix GPS Not Working Issue · 1. Check the GPS Status · 2. Switch the GPS Off and On · 3....
Read more >
My phone's GPS isn't working properly - HTC
Navigate to Settings > Location > and make sure Location is ON. · Navigate to Settings > Loction > Sources Mode and tap...
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