For a project, I'm using permission_handler package for flutter. I can get location permission status and ask permission from user. However,when I try to revoke location permission from app settings, app crashes intantly. In logcat I'm getting;

Killing (package_name) (adj 700): permissions revoked

When I read similar threads, I saw its not a bug, it's a feature.How can I handle this situation with flutter?Or do I need to implement some native code?

Solution 1: Narendra_Nath

Some permission settings cannot be changed while the App is running. This is by design.

Once you allow location permission if you revoke it while the app "thinks" that the permissions are given but you revoke it manually the processes that are supposed to run using that permission things break.