Hello is there a way to detect fake/mock location in iOS, based on this thread : https://stackoverflow.com/a/75973050
requirement is iOS 15, how can we use it on our b4i?
C-like:
let locationManager = CLLocationManager()
if #available(iOS 15.0, *) {
// use UICollectionViewCompositionalLayout
let isLocationSimulated = locationManager.location?.sourceInformation?.isSimulatedBySoftware ?? false
let isProducedByAccess = locationManager.location?.sourceInformation?.isProducedByAccessory ?? false
let info = CLLocationSourceInformation(softwareSimulationState: isLocationSimulated, andExternalAccessoryState: isProducedByAccess)
if info.isSimulatedBySoftware == true || info.isProducedByAccessory == true{
result(true)
} else {
result(false)
}
}
else{
result(false)
}
requirement is iOS 15, how can we use it on our b4i?