0

I need to make secure connection,https://192.168.42.253:3000/#/map/home instead of http://192.168.42.253:3000/#/map/home, I am using phonegap desktop cli.

enter image description here

because " navigator.geolocation.getCurrentPosition(succes,error,timeout)" to get current loation using js is not working in http.

nisar
  • 1,055
  • 2
  • 11
  • 26
  • Have you looked into the geolocation plugin? https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-geolocation/ – evolutionxbox Oct 16 '17 at 15:25
  • @evolutionxbox no issue with phone build, i am getting lat,lon using geolocation..but In phone I cant able to naviagate to current location, I want to debug it that is why I need https connection.I am using this map = new google.maps.Map(element[0], mapOptions); to navigate. – nisar Oct 16 '17 at 15:31
  • Looking at the CLI (which the desktop app uses) it doesn't offer a HTTPS option https://github.com/phonegap/phonegap-cli/blob/master/doc/cli/help.serve.txt – evolutionxbox Oct 16 '17 at 15:45

0 Answers0