Medium Feed

 

Monday, December 28, 2015

Application does not have sufficient geolocation permissions error - Cordova android hybrid app developement

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. !!!

6 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. i tried above code but its not working for me

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Mobile 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.

    ReplyDelete
  5. Web 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