HaylLtd / cordova-background-geolocation-plugin

Background and foreground geolocation plugin for Cordova.
Apache License 2.0
57 stars 66 forks source link

Heading and bearing undefined #78

Closed ivinantony closed 1 year ago

ivinantony commented 2 years ago

Describe the bug the app returns the value of bearing and heading as undefined sometimes. Anyone know how to fix this issue

HarelM commented 2 years ago

Are you sure this info is sent from the device's GPS?

ivinantony commented 2 years ago

yes. it seems not working in Samsung s21 and its gps is on. For ios more other devices sending correct data

HarelM commented 2 years ago

Can you share the plugin logs?

ivinantony commented 2 years ago

sure when i checked there is now value of heading and bearing for samsung s21 ultra and samsung s2

Screenshot 2022-05-31 at 9 18 37 PM

.

ivinantony commented 2 years ago

Does anyone has any idea about this? It seems only in some android devices heading and bearing values are missing in the location data

HarelM commented 2 years ago

I would search for broader issue in Google. I believe this plugin only propagates the device GPS events. Another thought is that when you get the position from cellular towers and not from the GPS you might get inaccurate and no heading position? It's just a thought. Can I close this issue?

ivinantony commented 2 years ago

sure but when i use the provider gps i am not getting any variable of bearing and heading. and may be i can use the device orientation plugin to get the heading of the device.hope you will find a solution asap. thanks

HarelM commented 2 years ago

Not sure I know what solution I should be looking for... Feel free to submit a PR if you think there's a bug in the code somewhere :-)

ivinantony commented 2 years ago

Sure i will do that i hope this issue is only for android 12 devices

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn't be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it's important. Thank you for your contributions.