GPS Sendor plugin

5 posts, 1 answers
  1. Marcelo
    Marcelo avatar
    7 posts
    Member since:
    Aug 2013

    Posted 10 Sep 2013 Link to this post

    hello guys,

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


    Hugs and thank you
  2. Answer
    Steve
    Admin
    Steve avatar
    10941 posts

    Posted 10 Sep 2013 Link to this post

    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.
  3. Marcelo
    Marcelo avatar
    7 posts
    Member since:
    Aug 2013

    Posted 10 Sep 2013 Link to this post

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

    Posted 13 Sep 2013 Link to this post

    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.
  5. Marcelo
    Marcelo avatar
    7 posts
    Member since:
    Aug 2013

    Posted 17 Sep 2013 Link to this post

    thank you steve.
Back to Top