title: IOS prevent Location listen when app in background
body: <p>my app using package <code>geolocator: ^5.1.5</code>
  I coding function listen to user location and when he near a point I notification him , it's work correctly but when app is open on screen but when press on home and put app in background it's push nothing but when resume app the app push notifications about location.</p>
  
  <p>my function location listener</p>
  
  <pre><code>//? Listen option
  var locationOptions = LocationOptions(
  accuracy: LocationAccuracy.best, distanceFilter: 50);
  //? listen
  locationStreamListener =
      Geolocator().getPositionStream(locationOptions).listen(
    (Position position) async {
      //? latLng of current location
      LatLng currentLatlng = LatLng(position.latitude, position.longitude);
  
      if(currentLatlng == myPointLocation){
          LocalNotificationsHelper(context).show(
           title: 'reach point',
           body:
           'there is action you have to do.',
           id: list.intId,
           payload: list.id);
  
      }
  
  });
  </code></pre>
  
  <p>and this is my app permission on ios device</p>
  
  <p><a href="https://i.stack.imgur.com/k00p6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k00p6.png" alt="enter image description here"></a></p>
  
  <p>and these are info.plist values</p>
  
  <pre><code>&lt;key&gt;NSLocationAlwaysAndWhenInUseUsageDescription&lt;/key&gt;
  &lt;string&gt;This app needs access to location when open and in the background.&lt;/string&gt;
  &lt;key&gt;NSLocationAlwaysUsageDescription&lt;/key&gt;
  &lt;string&gt;This app needs access to location when in the background.&lt;/string&gt;
  &lt;key&gt;NSLocationWhenInUseUsageDescription&lt;/key&gt;
  &lt;string&gt;This app needs access to location when open.&lt;/string&gt;
  </code></pre>
  
  <p>My app x-code capabilities<br>
  <a href="https://i.stack.imgur.com/TB9bY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TB9bY.png" alt="enter image description here"></a></p>