Is it even possible? I would like to be able to create a listener which will be notified about location permission changes (whether the app triggers them or not). As far as I can see, there are methods for getting the current permission status and methods for requesting permission but nothing which would simply allow the app to listen for changes.
For example, in iOS, we can set a delegate on a CLLocationManager
which will then be called via the locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus)
on any change in authorisation status. Does anyone know of any equivalent in Android (preferably compatible with API >= 17)?