Questions tagged [mock-location]

26 questions
0
votes
1 answer

Using isMock() function (to find mockLocation) giving error

I am trying to find if the location is from mock provider as shown below Location location = locationResult.getLastLocation(); if (android.os.Build.VERSION.SDK_INT <= 30) allLocationData.put("isMock", location.isFromMockProvider()); else…
ThinkAndCode
  • 1,319
  • 3
  • 29
  • 60
0
votes
1 answer

Is it possible to use mock location apps by end user to simulate user location in iOS apps?

I found a setting enable mock location in android phones which allows user to simulate location. But I didn't any such a setting in iPhone. Since I am very new to app development, I just want to hear from experts of iOS app development that is it…
ThinkAndCode
  • 1,319
  • 3
  • 29
  • 60
0
votes
0 answers

Detect mock location in flutter for iOS

I am using google maps and location package to know the current position of user, and I would like to prevent user for using fake GPS. Right now I build the project for iOS, and I didn't find yet any package to detect whether user using fake GPS or…
wahyu
  • 1,679
  • 5
  • 35
  • 73
0
votes
1 answer

How to prevent user from using fake gps in Flutter Web (PWA)

I build a Flutter Web project, but I would like to know, is there a package that can handle user to prevent from using fake gps or mock location? for Android and iOS, there is package called trust_fall and trust_location to detect mock location..…
wahyu
  • 1,679
  • 5
  • 35
  • 73
0
votes
0 answers

How to detect mock location using TrustLocation package in flutter

I am using trust location package (https://pub.dev/packages/trust_location#-readme-tab-) to detect wether user using fake gps or not... but the problem is... when I turn on fake gps app.. trust location works fine (await…
wahyu
  • 1,679
  • 5
  • 35
  • 73
0
votes
1 answer

How to spoof location on android without using Mock Locations?

We know that there are various apps like fake my GPS etc. But these apps use the developers options to activate mock locations. The apps that detect mock locations usually check if the permissions are on or not and they use the below…
raptorzee
  • 151
  • 1
  • 11
0
votes
1 answer

Android mock location provider sample app is not working

I am trying to build a simple Android mock location provide (Android 7.0). I am getting a Java.Lang.SecurityException on ... not allowed to perform MockLocationException. I have android.permission.ACCESS_MOCK_LOCATION in manifest file. I have also…
user2148707
  • 93
  • 12
0
votes
0 answers

Google Maps Webview Mock Location

I'm developing an app on Android and I'm trying to use this app for location mock on Android 6.0.1 (physical device). The app consists on a webview that renders some page which contains Google Maps. I have enabled the mock location app under…
maxter404
  • 1
  • 2
0
votes
1 answer

Android: Disable mock location for geofence

I am developing an Android app purely on geofence. Concept: My basic concept on geofence is user can play games for particular geo location. Problem: Everything is working fine but I downloaded the FakeGPS application from here. I was at home and I…
Hiren Patel
  • 52,124
  • 21
  • 173
  • 151
-1
votes
1 answer

My others apps don't detect mock location

I create a mock location app but when i enable it, other apps (like google maps) didnt detect it. In the app i can detect the real location if gps is on, and mock location if gps is off and app is enabled in mock location apps My…
-2
votes
1 answer

How to prevent the detection of fake GPS?

I found an app that detects Location spoofing and returns a warning screen. [1]: https://i.stack.imgur.com/qbhuU.jpg Then I tried to reverse engineer the app and remove the function isFromMockProvider()which checks whether the Location data is from…
1
2