GPS Location not available
See original GitHub issueI’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:
- Created 6 years ago
- Comments:11 (1 by maintainers)
Top GitHub Comments
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 ?
@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!