react-native-geolocation-service icon indicating copy to clipboard operation
react-native-geolocation-service copied to clipboard

watchPosition is not working fine on iPhone 6

Open ArchanaSharma95 opened this issue 3 years ago • 1 comments

I am getting the wrong positions on iPhone 6 and it creates the wrong map for me. I am just having an issue on "iPhone 6", it's working fine on other iOS devices.

This is my watchPosition function::

this.watchId = Geolocation.watchPosition(async (response) => {
	// watch position res handled
}, (error) => {
	this.onGeolocationErrorOccurCallback(error);
}, {
	accuracy: {
		android: 'high',
		ios: 'best',
	},
	enableHighAccuracy: true,
	distanceFilter: 5,
	showLocationDialog: true,
});

screenshot of map:: screenshot-2021 06 16-17_15_51

ArchanaSharma95 avatar Jun 16 '21 11:06 ArchanaSharma95

Not related to the package, we don't have custom logic for different type of devices. Maybe iPhone 6 can't get a proper location fix and reporting inaccurate results. Best option would be to filter out the results using kalman filter

Agontuk avatar Jun 25 '21 12:06 Agontuk