[TIMOB-24564] GPS mock location detection
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | android |
Reporter | greg |
Assignee | Unknown |
Created | 2017-04-06T23:11:10.000+0000 |
Updated | 2018-02-28T19:55:09.000+0000 |
Description
I need to guarantee that GPS positions being provided are not spoofed in my app.
It would be fantastic if a simple boolean could be returned to say that location data was being mocked.
I did a search around and this seems relatively simple to do; see [http://stackoverflow.com/questions/6880232/disable-check-for-mock-location-prevent-gps-spoofing]
Since API 18, the object Location has the method .isFromMockProvider() so you can filter out fake locations, but this is not exposed to us via the Appcelerator API
Hello, Thanks for submitting the request. Our Engineers will consider it.
We could use [this check](http://stackoverflow.com/a/16776891/5537752) to do it. Feel free to submit a PR for this feature!