GPS Disabled or Enabled?How to check

9 posts, 1 answers
  1. Answer
    Arun
    Arun avatar
    19 posts
    Member since:
    Jan 2012

    Posted 25 Apr 2013 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 25 Apr 2013 Link to this post

    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.
  3. Arun
    Arun avatar
    19 posts
    Member since:
    Jan 2012

    Posted 25 Apr 2013 Link to this post

    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..
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 25 Apr 2013 Link to this post

    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.
  5. Arun
    Arun avatar
    19 posts
    Member since:
    Jan 2012

    Posted 25 Apr 2013 Link to this post

    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?
  6. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 26 Apr 2013 Link to this post

    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.
  7. good4m
    good4m avatar
    1 posts
    Member since:
    May 2013

    Posted 10 Jun 2013 Link to this post

    *removed*
  8. Developer
    Developer avatar
    5 posts
    Member since:
    Jul 2013

    Posted 24 Sep 2013 Link to this post

    Hey Steve, do Icenium have now support for that plugin mentioned above?
  9. Steve
    Steve avatar
    11 posts
    Member since:
    Jul 2012

    Posted 24 Sep 2013 Link to this post

    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.
Back to Top