Page 1 of 1

GeoLocation in Chrome - GetCurrentPosition and watchCurrentPosition

Posted: Sat Jun 04, 2016 12:09 am
by Bruce Stuart

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


GeoLocation in Chrome - GetCurrentPosition and watchCurrentPosition

Posted: Sat Jun 04, 2016 2:57 am
by Howard Chang

Hi Bruce,

It has been broken for a while..

https://getsatisfaction.com/apperyio/...


GeoLocation in Chrome - GetCurrentPosition and watchCurrentPosition

Posted: Sat Jun 04, 2016 5:10 am
by Illya Stepanov

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.


GeoLocation in Chrome - GetCurrentPosition and watchCurrentPosition

Posted: Sat Jun 04, 2016 4:44 pm
by Bruce Stuart

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