Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect/Stop Spoofing of Location possible in iOS sdk?

I am having an application in which users need to visit particular locations. When users are nearby to this location a form is being open to fill. I have doubt that some users are spoofing their current locations(using any other application) and filling form at their home. Means fooling to my application.

I searched on Apple store and there is no application available for GPS spoofing or the application which can spoof location coordinates for other application in the iOS device.

I googled it and found that spoofing is possible on Jailbroken devices and some applications are available on Cydia store like "akLocationX", "Fake Location" etc. Below is the article on the same.

http://www.addictivetips.com/ios/easily-fake-iphone-current-location-aklocationx/

Could anyone help me, how can I stop this location spoofing on Jailbroken devices?

like image 229
Saurabh Shukla Avatar asked Jan 07 '14 08:01

Saurabh Shukla


People also ask

How do I stop spoofing my location?

Select Android > Restrictions > Click on Configure button. Under Allow Developer Options, uncheck Mock location option to restrict users from turning on Mock Locations on their devices.

Can mock location be detected?

On Android 18 (JellyBean MR2) and above mock locations are detected using Location. isFromMockProvider() for each location. The app can detect that the location came from a mock provider when the API returns true.

Can you spoof location on iOS?

Yes! Right now, the best way to spoof your location on an iPhone with iOS 16/15 installed is by using a desktop app. Simply set your desired location on the desktop app and then connect your iPhone to change its location. Let's look at your options for spoofing your iPhone location in 2022.

Can GPS location be spoofed?

Nowadays, radio transmitters are cheap online, and GPS spoofing apps are vastly available for Android devices even at the Play Store. GPS spoofing is just one way that fraudsters fake their location.


1 Answers

Based on another StackOverflow question (Identify jailbroken device from iOS application), you can detect if your app is running with some known jailbreak tools, and take an alternate code path, such as disabling that part of your app (but do not exit or crash your app, as that may cause your app to fail AppStore testing).

As for always getting the real location, you can't really - your app can only run in the environment it has - if the environment is a jailbroken iPhone, and a hack running in that environment causes the geolocation api to report its location is on Tattooine or Atlantis, then thats what your app will get. Next best option is to try detecting jailbroken devices (as above) and change your app's behaviour.

like image 112
Krease Avatar answered Oct 05 '22 23:10

Krease