use-position icon indicating copy to clipboard operation
use-position copied to clipboard

usePosition() not working in desktop safari version 13.1.1

Open mantey-github opened this issue 5 years ago • 7 comments

Hi, I'm trying to use your library in safari and it's not working. MacOs = Catalina Version 10.15.5

Both latitude and longitude returns undefined. Even error returns undefined

const { latitude, longitude, timestamp, accuracy, errorMessage } = usePosition(false, {
    enableHighAccuracy: true,
    timeout: 60000,
    maximumAge: 0,
  })


 console.log('latitude', latitude)
    console.log('longitude', longitude)
    console.log('errorMessage', errorMessage)

mantey-github avatar Oct 13 '20 15:10 mantey-github

Same problem here

Gondolav avatar Oct 14 '20 14:10 Gondolav

Actually it is not working on any browser.

Gondolav avatar Oct 15 '20 07:10 Gondolav

Same here. latitude, longitude, error are all undefined or null. Does anyone have a fix for this?

gregwinn avatar Nov 25 '20 16:11 gregwinn

Just a heads up - I am using Brave but tried my app in Google (on Mac) and it prompted me to allow location services in my Mac settings. Make sure Google Chrome is checked. This solved the issue for Google Chrome but not for Brave.

Screen Shot 2020-11-25 at 11 07 32 AM Screen Shot 2020-11-25 at 11 07 07 AM

gregwinn avatar Nov 25 '20 17:11 gregwinn

@mantey-github @Gondolav @gregwinn

Is this issue still exist? it works for me

behnammodi avatar Sep 29 '21 14:09 behnammodi

Hey @behnammodi - It works now in Brave.

gregwinn avatar Sep 29 '21 18:09 gregwinn

@gregwinn Awesome

behnammodi avatar Sep 29 '21 18:09 behnammodi