I found solution for android in this post:
In flutter how i can check if location is enabled?
but I still can not find how to check if location is enabled for IOS, I need to have bool, and I need to see if permision is granted, but is location off
I found solution for android in this post:
In flutter how i can check if location is enabled?
but I still can not find how to check if location is enabled for IOS, I need to have bool, and I need to see if permision is granted, but is location off
2
Answers
Here is a package that can check the status of various permissions on Android & iOS
https://pub.dev/packages/permission_handler
you can use this to check if location is enabled or not, and ask for permission if it is not enabled, this works with the Geolocator package for both android and iOS