'Crash when permission changed manually

Flutter app crashes when user manually changing location perimssion from allow to deny. Is this a normal behavior ?, i've tried to change manually the permissions of other popular apps, they all restart and not crash. But my app after changing permission says Lost Connection to Device and thats it



Solution 1:[1]

Actually this is a normal behavior on debugging mode , once you change app permission from settings it automatically kills the app and you have to re run it in order for the new settings to take effect for more info you can read this GitHub issue discussion https://github.com/Baseflow/flutter-permission-handler/issues/166

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ahmed Adel