Hello,
I have created an Indoor Map with my estimote location beacons, and after I fetch the location with an EILRequestFetchLocation, I startPositionUpdates
. However, it keeps returning the following error:
Error Domain=com.estimote Code=1 "Can't determine position outside the location." UserInfo={NSLocalizedDescription=Can't determine position outside the location.}
I search around the community but I couldn’t find any workaround that fixes that.
Could you give me some possible solutions, please?
My code is based on your app IndoorMap.
ESTConfig.setupAppID("<my-app-id>", andAppToken: "<my-app-token>")
self.locationManager = EILIndoorLocationManager()
self.locationManager.delegate = self
self.locationManager.mode = .normal
let fetchLocationRequest = EILRequestFetchLocation(locationIdentifier: "my-area")
fetchLocationRequest.sendRequest { (location, error) in
if let location = location {
self.location = location
self.locationManager.startPositionUpdates(for: self.location)
} else if let error = error {
print("can't fetch location: \(error)")
}
}