Application does not have sufficient Geolocation permissions error - Cordova android hybrid app development
I was getting this error while try to run my geolocation code in andorid device.
The reason was location access permission for the app is not enabled to app manifest.
Here's how to add the permission:
open your android manifest. xml file:
it will be in the location : platforms\android\
and the below tag:
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
Then rebuild the app and run it .
It should work. !!!
This comment has been removed by the author.
ReplyDeletei tried above code but its not working for me
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteMobile application development is often preferred by many e-commerce businesses due to a large number of mobile users. As a fellow Android app development company Bangalore, I really appreciate your work. Keep sharing such educational articles, great blog.
ReplyDeletethank you it's working for me
ReplyDeleteWeb Design plays a substantial role in this web development. You've written an excellent post, and you've shared it with us. Visit My Link as well. Web Development Company in USA
ReplyDelete