언어 설정

Menu
Sites
Language
Gear S GPS location!

How can I get (one time) location from the gear s?

I tried "navigator.geolocation.getCurrentPosition" and not working

I tried motion.start("GPS") and latitude/longitude are undefined

Tested on remote lab !

Responses

9 댓글
James Brown

Hi

I am also having trouble accessing navigator.geolocation.
The navigator.geolocation is empty.

I've looked all over the web and haven't found anyone else even attempting this.
 

daniel kim

Hi,

As Gear S has an A-GPS, I suggest you to test it with simcard.

Along with bluetooth connection with phone, I don't have a problem to get a location data in Gear S.

James Brown

I've been trying to test it with a sim card however I just get "User Denied Request" when I try to call watchPosition.
Running just standard GPS works though.

Unfortunately for me the project requires the watch to operate stand-alone.

Hvae you added the location privilege?

James Brown

Yes I've added every privilege I can think of:


    <tizen:privilege name="http://tizen.org/privilege/location.enable" />
    <tizen:privilege name="http://tizen.org/privilege/location"/>
    <tizen:privilege name="http://tizen.org/privilege/location.gps"/>
    <tizen:privilege name="http://tizen.org/privilege/location.gps.advanced"/>
    <tizen:privilege name="http://tizen.org/privilege/location.wps"/>

 


    <feature name="http://tizen.org/feature/location.wps"/>
    <feature name="http://tizen.org/feature/location.gps"/>
    <feature name="http://tizen.org/feature/location.gps.advanced"/>
    <feature name="http://tizen.org/privilege/location"/>

 

Is there an option in the Gear S I'm missing?

If I have the 'Only use GPS' checked I get can get the data but if I have that unchecked, that's when I get the 'User Denied Request'

daniel kim

In my understanding, you need to check 'Only use GPS' to give the access permission of GPS to your application.

so the uncheck of 'Only use GPS' means that you explicitly doesn't provide this permission to your application.

Kilim A

Hi,

could you tell me plz  where is it - 'Only use GPS'?

James Brown

Settings -> Connections -> Bottom there is a tick box that says Only use GPS -> Tick it.

Kilim A

In gear S?