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

GPS Disabled or Enabled?How to check

8 Answers 363 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.
Arun
Top achievements
Rank 1
Arun asked on 25 Apr 2013, 12:10 PM
How can I check whether the GPS is enabled or disabled in my phone using phone gap,jquery mobile in Icenium..??
I saw one phone gap plugin how can I integrate this in icenium..
https://github.com/BastienL/GPSDetector

8 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 25 Apr 2013, 12:25 PM
Hello Arun,

The Cordova Geolocation API does not expose a way to check this and the plug-in you refer to is not supported at the moment. The good news is that we're currently working on support for generic pluginstall Cordova plug-ins for subsequent version of the product.

Regards,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
0
Arun
Top achievements
Rank 1
answered on 25 Apr 2013, 02:11 PM
Hi Steve

Thanks for the quick reply
This Geolocation API doesn't give the exact location right....??inorder to get the exact location we need GPS rt? or is it like the geolocation API automatically takes the position if the GPS is on..
0
Steve
Telerik team
answered on 25 Apr 2013, 03:12 PM
Hi Arun,

From Cordova's documentation:
The geolocation object provides access to the device's GPS sensor. Common sources of location information include Global Positioning System (GPS) and location inferred from network signals such as IP address, RFID, WiFi and Bluetooth MAC addresses, and GSM/CDMA cell IDs.No guarantee is given that the API returns the device's actual location.

You can refer to the article we've pointed you in previous post for more information.

Greetings,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
0
Arun
Top achievements
Rank 1
answered on 26 Apr 2013, 04:45 AM
Ok it is said that The geolocation object provides access to the device's GPS sensor

Hi my question was like if the GPS is Off it wont  provides access to the device's GPS sensor rt?
So if we are keeping GPS ON and going to the application the GPS works as expected?
0
Steve
Telerik team
answered on 26 Apr 2013, 11:30 AM
Hello Arun,

Yes, if device GPS is off, the app would not be able to utilize it. If it is enabled, the Geolocation would use it.

All the best,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
0
good4m
Top achievements
Rank 1
answered on 11 Jun 2013, 03:28 AM
*removed*
0
Developer
Top achievements
Rank 1
answered on 24 Sep 2013, 02:13 PM
Hey Steve, do Icenium have now support for that plugin mentioned above?
0
Steve
Top achievements
Rank 1
answered on 24 Sep 2013, 02:54 PM
Although the Cordova Geolocation API does not expose a direct way to check whether GPS is on or off, you can check the error type and draw conclusions from there, see this thread for more info.
The GPSDetector plugin currently does not work with Cordova 2.7.
Tags
Apache Cordova
Asked by
Arun
Top achievements
Rank 1
Answers by
Steve
Telerik team
Arun
Top achievements
Rank 1
good4m
Top achievements
Rank 1
Developer
Top achievements
Rank 1
Steve
Top achievements
Rank 1
Share this question
or