Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not getting heading and speed parameter value #27

Closed
Shhzdmrz opened this issue Jun 24, 2018 · 6 comments
Closed

Not getting heading and speed parameter value #27

Shhzdmrz opened this issue Jun 24, 2018 · 6 comments

Comments

@Shhzdmrz
Copy link
Contributor

Hi,
I am using this package since it was first published but today I find out that I am not getting value for speed and heading parameter. I do not know what I did wrong. I am not an android developer please let me know what extra information you required to look into this issue.

Thanks

@Agontuk
Copy link
Owner

Agontuk commented Jun 27, 2018

As far as I know, heading & speed will return 0 if you're not moving, or if you're using network provider instead of gps provider due to weak signal. I think you need to track location updates for getting heading & speed value. Tracking location is not yet implemented, but I'll do it soon.

@Shhzdmrz
Copy link
Contributor Author

thanks for your response @Agontuk. Tried with the movement and working fine. You can close this issue now.
BTW Waiting for the tracking location update for this package.

@Agontuk
Copy link
Owner

Agontuk commented Jun 30, 2018

Location tracking is implemented in location-update branch. Feel free to try it out, I'll merge it to master after some testing.

@Agontuk
Copy link
Owner

Agontuk commented Jul 2, 2018

Location tracking is now available in 1.1.0.

@Agontuk Agontuk closed this as completed Jul 2, 2018
@Shhzdmrz
Copy link
Contributor Author

Shhzdmrz commented Jul 4, 2018

Hi @Agontuk
thank you for the watch position its working fine on my side.

Just a quick question. How these position options are working?
{ enableHighAccuracy: true, distanceFilter: 0, interval: 100000, fastestInterval: 30000 } for this configuration they are giving me location after each 1 minute and 40 seconds. Also they gps icon continuously showing in the notification area.

Is it the required behavior? How these options are working? please briefly explain to understand better for the watch position.

@Agontuk
Copy link
Owner

Agontuk commented Jul 4, 2018

Since you set the interval to 100 second (1m 40s), it'll update the location in that interval. Fastest interval is 30 second, which means if somehow location data is updated by other apps before 1m 40s, your app will also get the update after 30 second has passed.

GPS icon will always show because you're using enableHighAccuracy. That means GPS will be used as long as watchPosition is running. I'll update the doc.

EDIT: doc updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants