title: How can I listen UIApplication lifecycle iOS in flutter
body: <p>I want to detect my iOS app write with flutter move to background and going on foreground. Im used to <strong>WidgetsBindingObserver</strong> to listen lifecycle in flutter. But it don't work exactly not my expectation. When I push native controller in flutter app lifecycle trigger <strong>AppLifecycleState.paused</strong> but my app is running. Anyone have just faced this problem? and the way that you address issue. Thanks</p>
  
  <pre class="lang-dart prettyprint-override"><code>  @override
    void didChangeAppLifecycleState(AppLifecycleState state) {
      super.didChangeAppLifecycleState(state);
      if(state == AppLifecycleState.paused) {
        _viewModel.applicationMoveToBackground();
  
      } else if(state == AppLifecycleState.resumed) {
        _viewModel.applicationMoveToForeground();
      }
    }
  </code></pre>