title: Fetching Current Location with Permission not working
body: <p>I am using 
  geolocator: '^3.0.1'
  permission_handler: '^3.0.0'</p>
  
  <p>Now I want to fetch the current location of the user and show it on the map as the user opens the Map.</p>
  
  <p>So my Code is :</p>
  
  <pre><code>Future&lt;void&gt; requestPermission() async {
      PermissionHandler()
          .checkPermissionStatus(PermissionGroup.location)
          .then((PermissionStatus permissionStatus) async {
        print("Checking Permission " + permissionStatus.toString());
        if (permissionStatus == PermissionStatus.granted) {
          _getCurrentLocation();
        } else {
          print("Asking Permission " + permissionStatus.toString());
  
          final List&lt;PermissionGroup&gt; permissions = &lt;PermissionGroup&gt;[
            PermissionGroup.locationWhenInUse
          ];
          final Map&lt;PermissionGroup, PermissionStatus&gt; permissionRequestResult =
              await PermissionHandler().requestPermissions(permissions);
  
          if (PermissionStatus.granted ==
              permissionRequestResult[PermissionGroup.locationWhenInUse]) {
            print("Permission Granted " + permissionStatus.toString());
  
            _getCurrentLocation();
          }
        }
      });
    }
  </code></pre>
  
  <p>and permissions are defined in the manifest for android and info.list for IOS.</p>
  
  <p>Now the issue is when I run this function and when it calls <code>requestPermission</code> function, it shows the popup asking for the permission and </p>
  
  <p>when I <code>allow the permission</code> app crashes with an error :</p>
  
  <p><code>java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions: ... java.lang.IllegalStateException: Reply already submitted</code></p>
  
  <p>and also the result of permission is <code>Permission.disabled</code> though I allowed the permission in application settings and in permission it shows that location is permission is allowed. but I tried opening app several times it shows Permission.disabled.</p>
  
  <p>and even if I <code>deny</code> the app crashes with the same error.</p>
  
  <p>So what I have concluded is :</p>
  
  <p>If I <code>allow</code> or <code>deny</code>  it crashes because it is requesting multiple times and even if I allow the result is Permission.disabled.</p>
  
  <p>Link for the video: <a href="https://youtu.be/A1DKkw6u4HI" rel="nofollow noreferrer">https://youtu.be/A1DKkw6u4HI</a></p>
  
  <p>Can anyone help me solving this issue? </p>
  
  <p><code>Or please tell me how to take the current location map easily</code></p>