0

The location detect button in my website is not working in mobile when I put it on live domain from localhost. The location detect button works properly fine in localhost in every responsive view but stops working on live domain in the mobile screen view of the website. Here's the code

<button class="btn btn-link btn-lg link-no-style watch-video js-video-popup hidden-lg hidden-md" id="myLocation">
        <i class="fa fa-map-marker"></i>&nbsp;&nbsp;&nbsp;<?=t("Detect Location")?>
    </button>

This is the function I've used in it

$('body').on('click', '#myLocation', function () {
        navigator.geolocation.getCurrentPosition(success_geo);
        return false;
    })
ProgrammerPer
  • 1,125
  • 1
  • 11
  • 26
  • So, it works on mobile when you visit your local site? – brombeer Oct 05 '18 at 06:27
  • Try and see if this post has anything of value in terms of your question: https://stackoverflow.com/questions/3025348/how-do-i-use-jquery-for-click-event-in-iphone-web-application – Martin Oct 05 '18 at 07:03
  • yes @kerbholz it works on mobile when i visit my local site but when i visit my domain site it stops working – Web Macwill Oct 09 '18 at 05:00

0 Answers0