Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

GeoLocation in Chrome - GetCurrentPosition and watchCurrentPosition

Happy Friday .

I have a standard Appery geolocation device function that has been working until (i'm guessing) today.

The message I get - when doing devleopment in Chrome (god help me if I were to do it elsewhere) is (from the message in the Chrome console / debugger )

" getCurrentPosition() and watchPosition() are deprecated on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details."

I've gone to the link there - and well - they say....:

Image

What's the best way to work around this?

thank you,

Bruce

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

GeoLocation in Chrome - GetCurrentPosition and watchCurrentPosition

Hi all,

Currently the solution is to run Chrome with the --unsafely-treat-insecure-origin-as-secure="http://appery.io" flag ( as Bruce has mentioned from this article https://sites.google.com/a/chromium.o...).

Or use another browser: Fire Fox and Safari.

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

GeoLocation in Chrome - GetCurrentPosition and watchCurrentPosition

Thanks Howard and Illya.

I've seen the warning for some time now (say 3-4 months) however - I believe it just stopped returning a result recently.

Good suggestion or I may just switch to the API call - as suggested here:

http://stackoverflow.com/questions/32...

thanks again!
Bruce

Return to “Issues”