Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70433

How to enable gps services programatically in capacitor?

$
0
0

@jos333 wrote:

I am using capacitor 2.0.1. And when I am using geolocation API from the capacitor. if GPS is off, then I get the below result.

capacitor-runtime.js:421 

{message: "location unavailable"}
message: "location unavailable"

But how to enable GPS, if it’s off? Please advice.


Installed Dependencies:

  @capacitor/cli: 2.0.1

  @capacitor/core: 2.0.1

  @capacitor/android: 2.0.1

  @capacitor/electron: 2.0.1

  @capacitor/ios: 2.0.1

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70433

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>