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.

Geolocation Permissions error

See original GitHub issue

Capacitor geolocation is giving me the following errors…

To Native -> Geolocation requestPermissions 64714929 ⚡️ Error calling method requestPermissions on plugin Geolocation: No method found. ⚡️ Ensure plugin method exists and uses @objc in its declaration, and has been defined

However I have added the correct permissions to the info.plist as stated in the guide and it was working perfectly until today… any ideas?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
jcesarmobilecommented, Oct 31, 2018

I don’t think that’s right, I think that will use the webview implementation instead of the Capacitor plugin.

Ah, wait, you had import { Geolocation } from '@capacitor/core' and changed it to const { Geolocation } = Plugins? then yeah, that’s the right way of using it.

2reactions
oliverandersencoxcommented, Oct 31, 2018

SOLVED - Instead of putting:

const { Geolocation } = Plugins

I had placed the geolocation here:

import { Geolocation } from ‘@capacitor…’

In case anyone else does this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Application does not have sufficient geolocation permissions ...
I just updated the plugin and the error disappeared: cordova plugin rm org.apache.cordova.geolocation cordova plugin add cordova-plugin- ...
Read more >
Error 'User Denied Geolocation' on iOS Devices | Austere Risk
Owners of iOS devices such as an iPhone and or iPad may experience the 'User Denied Geolocation' error if they have previously denied ......
Read more >
application does not have sufficient geolocation ... - GitHub
i have to try find out error solution in last 6 days. The following code was used when trouble shooting the install. TRY...
Read more >
GeolocationPositionError - Web APIs - MDN Web Docs
The GeolocationPositionError interface represents the reason of an error occurring when using the geolocating device.
Read more >
[Location Plugin] [Location Plugin] [Android] Mobile app doesn ...
I've implemented a GetLocation method in my mobile app. However when running it, I get a 'application does not have sufficient geolocation ......
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