This is a migrated thread and some comments may be shown as answers.

GPS Sendor plugin

4 Answers 75 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marcelo
Top achievements
Rank 1
Marcelo asked on 10 Sep 2013, 02:14 PM
hello guys,

Is there any plugin for phonegap android / iOS that checks if the GPS sensor is active?


Hugs and thank you

4 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 10 Sep 2013, 02:50 PM
Hello Marcelo,

The Cordova Geolocation API does not expose a direct way to check whether GPS is on or off, but you can check the error type and draw conclusions from there, see this thread for more info. There is also a Cordova plugin that checks this for Android: GPSDetector.

More information on using custom plugins in Icenium is available in our documentation: Working with Custom Plugins.

Regards,
Steve
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Marcelo
Top achievements
Rank 1
answered on 10 Sep 2013, 04:17 PM
I tried to use the plugin GPSDetector more a problem occurs.

Class not found.

I do not think funcina in version 2.7 of the cordova. You know know if it works in this version?

For it is this version that I am using in Icenium Mist.

Very grateful for the attention
0
Steve
Telerik team
answered on 13 Sep 2013, 01:22 PM
Hi Marcelo,

Yeah, it seems that the plugin is not functional even with Cordova 2.2. Eitherway, since you're interested in checking the GPS in both Android and iOS, using my first suggestion is a better option.

Regards,
Steve
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Marcelo
Top achievements
Rank 1
answered on 17 Sep 2013, 07:43 PM
thank you steve.
Tags
Apache Cordova
Asked by
Marcelo
Top achievements
Rank 1
Answers by
Steve
Telerik team
Marcelo
Top achievements
Rank 1
Share this question
or