Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Conversation

@akera-io
Copy link
Contributor

When requesting a high accuracy for ios we often receive a not so accurate location due to the fact that when starting update location ios will send a first location as quick as possible although not with the desired accuracy so desiredAccuracy was basically ignored on ios. Since from version 9+ the requestLocation API was introduced thought to use that as well, still if timeout option is specified the good old timer must be used.

Regardless of desired accuracy when  starting
location update ios sends a first location as
quick as possible even if not with requested
accuracy.
For ios version 9+ requestLocation API is used,
for lower versions the first location received is
ignored unless desired accuracy is Accuracy.any.
@ghost ghost added the new PR label Feb 19, 2019
@elena-p elena-p requested a review from a team February 19, 2019 10:43
@VladimirAmiorkov
Copy link
Contributor

Hi @akera-io ,

I see that there is an CI test that is failing in this PR, can you review it and review your PRs code. The first failure is here: https://travis-ci.org/NativeScript/nativescript-geolocation/jobs/495360697#L347 I see that the error is the same for all failed tests ("Failed: Error: iosLocManager.requestLocation is not a function. (In 'iosLocManager.requestLocation()', 'iosLocManager.requestLocation' is undefined)")

@VladimirAmiorkov VladimirAmiorkov self-requested a review February 27, 2019 07:52
Copy link
Contributor

@VladimirAmiorkov VladimirAmiorkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit test are failing with "Failed: Error: iosLocManager.requestLocation is not a function. (In 'iosLocManager.requestLocation()', 'iosLocManager.requestLocation' is undefined)"

@cla-bot
Copy link

cla-bot bot commented Feb 27, 2019

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign the CLA at https://www.nativescript.org/cla.
CLA has not been signed by users: @akera-io.
After signing the CLA, you can ask me to recheck this PR by posting @cla-bot check as a comment to the PR.

@cla-bot cla-bot bot removed the new PR label Feb 27, 2019
@ghost ghost added the new PR label Feb 27, 2019
Regardless of desired accuracy when  starting
location update ios sends a first location as
quick as possible even if not with requested
accuracy.
For ios version 9+ requestLocation API is used,
for lower versions the first location received is
ignored unless desired accuracy is Accuracy.any.
@cla-bot cla-bot bot added the cla: yes label Feb 27, 2019
@akera-io
Copy link
Contributor Author

Missed the 'mock' location manager used for tests, did added the new method there and tests seems to pass now.

@VladimirAmiorkov VladimirAmiorkov merged commit 1c9b8d1 into NativeScript:master Feb 28, 2019
@ghost ghost removed the new PR label Feb 28, 2019
@VladimirAmiorkov
Copy link
Contributor

@akera-io Thank you. We will proceed with testing and will publish a new version as soon as possible.

@elena-p
Copy link
Contributor

elena-p commented Feb 28, 2019

implementation of feature #202

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants