Agontuk / react-native-geolocation-service

React native geolocation service for iOS and android
https://www.npmjs.com/package/react-native-geolocation-service
MIT License
1.6k stars 290 forks source link

Speed returning 0 on ios #400

Open matheusyuri7 opened 1 year ago

matheusyuri7 commented 1 year ago

Platforms

Only in ios - Android works fine

Versions

Description

Speed value from the position is returning 0 in ios even when user is moving

Reproducible Demo

Console log of position {"coords": {"accuracy": 5.461819109413404, "altitude": 833.1177930291742, "altitudeAccuracy": 1.9982665109627908, "heading": 58.63212782060344, "latitude": -23.13287799989616, "longitude": -46.588141983026865, "speed": 0}, "timestamp": 1675261940999.6013}

Expected Results

I was expecting to see the json position speed value reflecting the speed of the moving user

MRadek55 commented 1 year ago

Do u have this issue on fake gps/gpx only ? If yes, just test it in the real scenario and it will give u proper value