6 Replies Latest reply on Jun 6, 2013 1:42 PM by Hector Meza

    ET1 Rho App Gps Always get lat 0.0 lon 0.0

      Hi,

       

      In the reference i don´t see any command to enable the GPS and i don´t know if I am missing something but on my procedure i always get 0.0 for latitude and longitude... any ideas? I have added gps to the capabilities on the .yml....

       

      If I deploy on my Galaxy S3 I DO GET the coordinates...

       

      def geoLocate

          latitud=GeoLocation.latitude

          longitud=GeoLocation.latitude

          RhoLog.info("CRISTIAN","#{latitud}")

          RhoLog.info("CRISTIAN","#{longitud}")

          WebView.execute_js("setLat('"+latitud.to_s+"')")

          WebView.execute_js("setLon('"+longitud.to_s+"')")

        end