fafa92
fafa92

Reputation: 143

iOS 11 Beacon monitoring problems

When I'm using ios 11, since it's security permissions have been changed for allowing an app to access users' location, how can we do monitoring(enter/exit) when user only gave us "access only when using the app"? is there any way at all that we can do monitoring without that permissions?

Upvotes: 1

Views: 381

Answers (1)

davidgyoung
davidgyoung

Reputation: 64941

If you only have "when in use" location permission, monitoring is not useful in practice. There is simply no way to get callbacks when your app is not in the foreground.

When your app is running you may call locationManager.requestState(for: region) (See here) to see how the region inside/outside status has changed since your app was last running. This is really the best you can do.

Upvotes: 1

Related Questions