4

I somewhat got in a tricky situation, I'm developing an app that highly depends on location services. It works perfectly fine on android but on ios, it says PermissionException permission is denied permanently. I do have permission strings in my info.plist and I'm actively requesting it on the home screen if the permission status is not accepted in any kind. Besides that, I made a button that opens the app settings in settings. There I cant find a location option at all.



    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
    <string>some string</string>
    <key>NSLocationAlwaysUsageDescription</key>
    <string>some string</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>some string</string>

Those are the permissions I'm using.

The version of Geolocator => geolocator: ^8.2.0

I kindly request help :) Thanks beforehand!

Mehmet Karanlık
  • 237
  • 1
  • 10
  • 1
    I am having the exact same issue. Can anyone help? – Nicolas Zein May 21 '22 at 16:03
  • i think i figured it out. Look here: https://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler/README.md Make the changes to your podfile and add the macro permissions you need but read the readme file i linked above. Hit me up on skype if you need help: "nzein19" – Nicolas Zein May 21 '22 at 22:52
  • 1
    Not sure if this is still an issue, however on iOS the `PermissionException permission is permanently denied` usually means the user denied permission once before. On iOS this means permissions should be granted through the iOS settings. Requesting permissions from your app will not suffice and iOS will not display the permission dialog. Instead go to "Settings" -> "Privacy" -> "Location Services" -> "Your App" and update permissions there. – Maurits van Beusekom Jun 16 '22 at 13:58
  • 1
    @MauritsvanBeusekom I was also facing the same issue. Tried your suggestion, but under the location services, my app is not there. – Tushar Sep 01 '22 at 15:45

0 Answers0