navigator.geolocation permissions not available on www, but on dev1 it works fine.
Back to All

navigator.geolocation permissions not available on www, but on dev1 it works fine.

I'm having trouble with navigator.geolocation permissions on www.mysite.com (production site) even though it is working on the development site dev1.mysite.com

on dev1.mysite.com this code works fine:

    if (navigator.geolocation)
    {
        navigator.geolocation.getCurrentPosition(function(location) 
        {
            bd_google_location(location,bd_gps_callback);
        },
        function(error) 
        {
            if (error.code == error.PERMISSION_DENIED)
            {
                alert('PERMISSION_DENIED');
                bd_mappinclicked_fallback();                
            }
        }, { maximumAge:60000, timeout:15000, enableHighAccuracy:true } );
    }

On the main site, www.mysite.com I get permission denied, but dev1.mysite it works fine.

I went to the app permissions, to make sure it is always allowed...but still same result.

Thoughts?