-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #252 adds IsFromMockProvider on Android 18+
- Loading branch information
1 parent
b30f37a
commit 1988f06
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1988f06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how to use IsFromMockProvider?
i am using Xamarin forms portable project
i use this line to get geo location
var position = await CrossGeolocator.Current.GetPositionAsync(new TimeSpan(0, 0, 0, 0, 500));
i need to know if the returened location is fake or not .... can you please help @jamesmontemagno ?
1988f06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is a property on the location that is returned.
1988f06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not available in returned position properties @jamesmontemagno
1988f06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any updates ? @jamesmontemagno
1988f06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is there an it works as when I use Lockito to test that flag is set.
https://github.com/jamesmontemagno/GeolocatorPlugin/blob/master/src/Geolocator.Plugin/Abstractions/Position.shared.cs
You can clearly see it is a part of code, if you are not seeing it you must be having issues outside the plugin.
BTW : As this nuget is not overly maintained anymore in favour of the yet not on feature parity xamarin essentials I simply forked the code into a private repo and update it myself now. Might be worth doing the same yourself if you are building a serious application.
1988f06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, maybe uninstall and re-install... it is there for me....
1988f06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh it is in the pre-release nuget, that is why you don't see it :)
1988f06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes i found it :-) when i upgraded to latest pre-release.... but is it safe to put a beta nuget into a fully working application that will be published on PlayStore and AppStore ? @jamesmontemagno
my application uses geo for employees attendance (IN/OUT) ...