You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am restricting the watchPosition to call setLocation only when 5 minutes has passed. This is needed to not overload the api with api calls every second. But this code does not work as expected. Can it be that the watchPosition can’t access the LOCATION_LAST_SYNCED_ON Stored variable?
I am restricting the watchPosition to call setLocation only when 5 minutes has passed. This is needed to not overload the api with api calls every second. But this code does not work as expected. Can it be that the watchPosition can’t access the LOCATION_LAST_SYNCED_ON Stored variable?
Or is this not the correct way to achieve this?
The text was updated successfully, but these errors were encountered: