Support » Plugin: WP GPX Maps » Option “Use browser GPS position” not working on iPhone

  • Resolved dougienisbet

    (@dougienisbet)


    Hi,

    [Like tuxlog, I tried to use the recommended forum but got Error: the Captcha didn’t verify. whenever I tried to submit my post.]

    Specific example: http://www.elvet-striders.uk/about/test-page-maps/

    When I view this webpage on an iPhone I do not get prompted to allow it to use my position, and my position does not appear on the map. Tested on Safari, Chrome and Firefox on iPhone 6s (two different phones on two different accounts), and Safari and Chrome on an iPhone 5s.

    I tried a couple of other sites that use position (e.g. maps.google.com) and they prompt for permission to use location.

    I’ve tried resetting Location and Privacy data under Settings.

    Also tried on an Android Samsung tablet; Chrome and a new Firefox install. And no prompts. But prompts for maps.google.com.

    I’ve also tried ‘requesting desktop site’ on the iPhone.

    However, if I access http://www.elvet-striders.uk/about/test-page-maps/ on an iPad, I AM asked whether it’s ok to share my location, and my position IS shown on the page.

    Is there something specific to the iPhone (and perhaps smartphones generally) that causes the plugin not to use the location?

    Dougie

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dougienisbet

    (@dougienisbet)

    Well I’m learning a lot today! And may have answered my own question.

    I had a look at the code, and found references such as

    // Try HTML5 geolocation
    if(navigator.geolocation

    )

    in WP-GPX-Maps.js

    A bit of googling and browsing of pages such as https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation

    and it looks like this is connected with Secure Connections. I’ve currently done a couple of tests on another site (Enabling TLS) and I can now get geolocation working on my iPhone (not the site above yet.).

    Tempted to delete this post but I’ll leave it in case someone else stumbles upon the same problem. I’m guessing that newer version of IOS/Safari on my smartphones more demanding in their security requirements.

    Not marking as resolved yet. Will do a few more tests in due course to satisfy myself.

    Dougie

    Thread Starter dougienisbet

    (@dougienisbet)

    Yup, that was it.

    http://www.elvet-striders.uk/about/test-page-maps/

    now working ok.

    Needed to improve security on website.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Option “Use browser GPS position” not working on iPhone’ is closed to new replies.