title: Flutter - Android doesn't ask for permissions
body: <p>I'm trying to get the current location of the device using the plugin <a href="https://pub.dartlang.org/packages/location" rel="nofollow noreferrer">location</a> but Android never asks for permissions. I get this error:</p>
  <blockquote>
  <p>Exception has occurred. PlatformException
  (PlatformException(PERMISSION_DENIED_NEVER_ASK, Location permission
  denied forever- please open app settings, null))</p>
  </blockquote>
  <p>I have added the line below in every `AndroidManifest.xml´ file that I could find in the Android folder (no idea which one I should use actually, I found 3 of them)</p>
  <pre><code>&lt;uses-permission android:name=&quot;android.permission.ACCESS_FINE_LOCATION&quot; /&gt; 
  </code></pre>
  <p>I tried the plugin <a href="https://pub.dartlang.org/packages/permission_handler" rel="nofollow noreferrer">permission_handler</a> to request them manually but still, no pop-up.</p>
  <p>I'm completely lost and I find nothing similar on the net. Here is the code :</p>
  <pre><code>Future&lt;LocationData&gt; _getLocation() async {
    LocationData currentLocation;
    
    // returns a map with unreadable numbers which make no sense
    var t = await PermissionHandler()
        .requestPermissions([PermissionGroup.location]);
    
    // returns false
    var test = await location.requestPermission();
  
    try {
      currentLocation = await location.getLocation();
    } catch (e) {
      currentLocation = null;
    }
    return currentLocation;
  }
  </code></pre>
  <p>Edit: I tried this on my device (OnePlus 6) and on an emulator (Pixel XL API 28). I've also tried to uninstall/reinstall the app.</p>