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

CancellationToken passed into GetPositionAsync isn't honored if position is null and Locator is currently Listening #71

Closed
PureWeen opened this issue Mar 20, 2017 · 0 comments

Comments

@PureWeen
Copy link

Bug

Version Number of Plugin: master branch of source code
Simulator Tested On: iPhone 5s iOS 10.2

Expected Behavior

If GetPositionAsync is called, the position is null, and IsListening is true the passed in CancellationToken is ignored. It is not ignored in Android though

Actual Behavior

Token is ignored so if no position shows up then the await just hangs forever

Steps to reproduce the Behavior

The device needs to be setup so it won't ever give you positions then.

GeoLocator.StartListeningAsync
//pass a cancellation token into
await GetPositionAsync
//Cancel the token and you'll see that the await still never completes

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

1 participant