-
Notifications
You must be signed in to change notification settings - Fork 47
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
add test to know if location is mocked #18
base: master
Are you sure you want to change the base?
Conversation
@louisbl, are you interested? |
It could be usefull but it means this plugin no longer strictly follow the Geolocation API specification. Also it appears there is no way to know if a Location has been mocked before SDK 18? It just check if it could have been mocked, right? |
yes, from API 18 it is possible to know if location is mocked, before it is only possible to know that mocked locations are authorized on this device |
fix nullpointer on android os > 6
@cvaliere why dont you make a seperate plugin to detect mock location, let this one be just for getting location |
the thing is, it's when I get the location, in Java, that I'm able to know if it's mocked or not (with Java method isFromMockProvider() ) Note: my fork also contains a NullPointerException fix for Android 6+ |
Hi @louisbl
I added a test to know if location is mocked (by FakeGPS or something else)
Dunno if you're interested in this feature, but I needed it anyway :)