title: Navigate back to app from url_launcher webview - Flutter - Android
body: <p>I am currently using the url_launcher dart package for handling urls in my app. I have a basket and checkout flow within my app. At the final stage of this I need to launch a url for the user to confirm their 3ds bank security. Once this is done they can navigate back to the app and see an order confirmation screen.</p>
  <p>Currently using the following code which will launch the url successfully and user is able to go through the 3ds check.</p>
  <pre><code>  Future&lt;void&gt; _launchInWebViewWithJavaScript(String url) async {
      if (await canLaunch(url)) {
        await launch(
          url,
          forceSafariVC: true,
          forceWebView: true,
          enableJavaScript: true,
        );
      } else {
        throw 'Could not launch $url';
      }
    }
  </code></pre>
  <p>However when using the above method on ios I can see a &quot;Done&quot; button in the top left of the webview which when pressed will take me back to the app.</p>
  <p><a href="https://i.stack.imgur.com/om2Xv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/om2Xv.png" alt="enter image description here" /></a></p>
  <p>This button however does not appear on android its simply a webview that fills the whole screen so once the 3ds process is over the user has no way of navigating back in to the app.</p>
  <p>Android view as you can see no done button present and the buttons at the bottom dont work:</p>
  <p><a href="https://i.stack.imgur.com/dJ1Nr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dJ1Nr.png" alt="enter image description here" /></a></p>
  <p>Can this be achieved with url_launcher? OR should I be using webview_flutter to launch the url on android so I can display an app bar above it and add the ability to go back into the app for android users myself.</p>
  <p>The url must be opened in app so I don't want it to open in a separate browser.</p>
  <p>I hope I have provided enough information any help is much appreciated.</p>