iOS 11 beta kCLErrorDomain Code = 4

I have an app which uses beacons it works well in iOS 10 and lower.

I'm trying to move it to iOS 11 but I alwayd get Error Domain=kCLErrorDomain Code=4 "(null)"


I ask for requestWhenInUseAuthorization.

Just baffled why it works in iOS 10 but not iOS11.


Is it a known problem? I cannot tell from the Release Docs.


Thanks


Michele

I'm having this issue also - if user selects ""only when using the app" from the locations permissions prompt, my beacons don't start ranging and I get the same error you're getting.


I wonder if beacon support requires "Always" permissions?

It appears that requestWhenInUseAuthorization permission does not allow you to monitor beacon regions - you can only range.


Our code was set up to monitor beacon regions, then start ranging beacons if the user entered a beacon region.

This will not work with requestWhenInUseAuthorization; startMonitoringForRegion will fail.

I suppose all we can do with requestWhenInUseAuthorization is to range continually (which would only happen if the app is in the foreground, so hopefully battery life won't be adversely affected).

iOS 11 beta kCLErrorDomain Code = 4
 
 
Q