I download the project from here
https://www.raywenderlich.com/136165/core-location-geofencing-tutorial
and did little modification according to requirement
xcode said description missing so I add these in info.plist
Privacy - Location Always and When In Use Usage Description
Privacy - Location When In Use Usage Description
In
GeotificationsViewControllerI modified thisfunc locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) { mapView.showsUserLocation = status == .authorizedAlways|| status == .authorizedWhenInUse }
When I grant authorizedAlways every thing works fine but when authorizedWhenInUse is granted its not delivering the didEnterRegion and didExitRegion
App is open, running, active, visible on screen in both scenarios.
xcode Version 9.2, iOS 11.2