User avatar
AndrewC
GpsGate
Posts: 323
Joined: Tue Apr 01, 2014 12:30 pm
Location: Sweden
Contact: Website

FIX: ME button does not work in Mobile

Fri Jun 03, 2016 12:38 pm

Note: for an updated version of this and other articles, we recommend you to check our knowledge base here

ISSUE

In the Mobile plugin if you click the "ME" button you see a warning pop up instead of the feature working as expected.

CAUSE

The "ME" button in the Mobile plugin uses a browser feature called the Geolocation API to find out where you are.

Around a year ago Google announced their intent to only allow the use of browser features that supply sensitive user data to pages that are accessed securely. With the recent release of Chrome version 50 they have started enforcing this restriction, with other browser vendors looking to follow their lead.

https://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only?hl=en

This means that features like requesting the user's current geographical location can only be done if the page is served with the HTTPS protocol.

SOLUTION

There is an easy fix to this issue and that is to serve your GpsGate Server over HTTPS.

If you are on a GpsGate hosted account you can contact us to move your account to HTTPS.

http://gpsgate.com/contact

If you host your own GpsGate Server you will need to migrate to HTTPS yourself.

You can purchase an SSL certificate or use a free one to get you started.

https://www.google.com/search?q=free+ssl+certificate

Then you will need to configure IIS.

http://www.iis.net/learn/manage/configuring-security/how-to-set-up-ssl-on-iis#IISManager

MORE INFORMATION

Hosting your tracking server over HTTPS has other benefits as well as this fix.

Read more about the benefits of HTTPS here and consider adding it to your tracking server today.

https://fastwebmedia.com/blog/web-security-why-use-https/2016-02-26/

(Not affiliated with GpsGate)

Regards,
Andrew

GpsGate Support

Return to “GpsGate Server - How to setup and use”