Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24564] GPS mock location detection

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsandroid
Reportergreg
AssigneeUnknown
Created2017-04-06T23:11:10.000+0000
Updated2018-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

Comments

  1. Sharif AbuDarda 2017-04-07

    Hello, Thanks for submitting the request. Our Engineers will consider it.
  2. Hans Knöchel 2017-04-09

    We could use [this check](http://stackoverflow.com/a/16776891/5537752) to do it. Feel free to submit a PR for this feature!

JSON Source