In simulator speed is changing but in watches it is not.
Is there way, how can i get actual speed of device ?
Thank you for your answers.
In simulator speed is changing but in watches it is not.
Is there way, how can i get actual speed of device ?
Thank you for your answers.
hi,
have you tried to do
Simulation => Fit Data => Simulate Data on the simulator ?
Yes, that is working, in simulation speed data are changing, but on the real device, speed is permanently zero.
What type of app? If you simulate data in the sim, something like a WF will see changes in Activity.Info that won't be seen on a real device.
Are you actually turning on GPS in other app types? (widgets/device apps)
App type: watch app.
In not tuning GPS on. I font know how .
In api documentation was that possition.getInfo().speed returns position from best availible source.
Is it necessary to turn on something ?
You're expecting the speed, which needs GPS, so yes, you need to turn it on for Position. Hve you tried getting the speed from Activity.getActivityInfo().currentSpeed?
Is it working without running activity?
And how can i turn on GPS ?
Position.enableLocationEvents(Position.LOCATION_CONTINUOUS, method(:onPosition));
with 3.2, there are other things you can do, such as specify the constellations used. See the API doc.
This method is working.
Thank you so much.