How can I do a function after a permission is granted?


in my App if the Geolocation permission is not granted, a button will appear to open the App’s settings. Then once the user has granted the permissions automatically, I wan’t the App to automatically do a function.

How can I automatically do that function after permissions granted automatically?

I’m using the Native settings plugin to open the app’s info.


Ok I could this using Observable.interval to start checking every 2s if the permissions are enabled and using some booleans to continue checking every 2s or stop.