Post

Replies

Boosts

Views

Activity

CLLocationManager().location has isSimulatedBySoftware always false
I tested my code to detect fake locations in two ways: Receiving location updates from func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]). This code returns location?.sourceInformation?.isSimulatedBySoftware as true (which is correct for my scenario) Getting CLLocationManager().location directly. This code returns location?.sourceInformation?.isSimulatedBySoftware as false (which is incorrect) Why CLLocationManager().location returns the correct location infos but not return correct isSimulatedBySoftware info?
0
0
456
Nov ’23