phppup Posted October 7, 2023 Share Posted October 7, 2023 (edited) After unsuccessful efforts at trying to obtain my GPS location from a self-written PHP script, I moved to a more local JavaScript code. When opened on my Android phone with a Chrome browser, I received an error Y0ZkNV. Is there a way to resolve this without changing my hosting to an HTTPS platform? My goal is to be able to access my current location on my phone's browser. Edited October 7, 2023 by phppup Forgot item Quote Link to comment Share on other sites More sharing options...
Solution requinix Posted October 8, 2023 Solution Share Posted October 8, 2023 3 hours ago, phppup said: When opened on my Android phone with a Chrome browser, I received an error Y0ZkNV. That's not an error. That's a link. Specifically, a link to https://goo.gl/Y0ZkNV. Pay more attention. 3 hours ago, phppup said: Is there a way to resolve this without changing my hosting to an HTTPS platform? Not if you want to do this from Javascript. But you should change to HTTPS regardless. To do it from PHP, if you can accept that you will not get an accurate location, you look up the remote IP address in some geolocation database - MaxMind's, for instance. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.