CarlSchwarz

Webviewer in Webdirect on FMSv17 can no longer Geolocate

Discussion created by CarlSchwarz on Sep 11, 2018
Latest reply on Sep 13, 2018 by TSGal

I have used the following JavaScript to get a GPS location in a webviewer in webdirect on mobile phones:

 

function getLocation() {
 x.innerHTML = 'Obtaining GPS position, accept all location dialogues';
 navigator.geolocation.getCurrentPosition(
  function(position) {
   showPosition(position);
  },
  function () {
   alert('Error locating your device');
  },
  {enableHighAccuracy: true}
 );
}

Also note that if you try to open this URL in a webviewer it does not work: HTML5 Geolocation (GPS-only) | Mobile HTML5 test suite

This still works fine for files hosting in FileMaker Server v16 and before but does not work in FileMaker v17.

Outcomes