title: Redirect to app from in-app browser on Android
body: <p>In the native Android app we are building we need to open a browser to our website to log the user in. When the login is succesful, the browser redirects back to the app by using our custom URL scheme (so something like this: <code>myapp://authenticate?token=abc123</code>).</p>
  
  <p>This seemed to work just fine, but now we discovered that on some Android devices, the browser is not opened. Instead an in-app Chrome browser is opened, causing different behaviour. Because it is in-app, the redirect to our app using the custom URL scheme does in fact arrive in the app: the user is successfully logged in! But the problem is: the in-app browser window is still visible! The user now needs to manually close it.</p>
  
  <p>I see two ways to fix this, but for both ways I have no clue if this is even possible.</p>
  
  <ol>
  <li>Find a way to programmatically close the in-app browser window</li>
  <li>Find a way to prevent the in-app browser to open in the first place (always open the full Chrome app).</li>
  </ol>
  
  <p>If anyone can provide me with a clue on how to do any of these two things, it's very appreciated!</p>
  
  <p>Also, we can't even reliably reproduce this issue. On some Android devices this happens and on some it doesn't. So if anyone has a clue what setting on Android influences the behaviour of opening an in-app browser, I would like to know that as well!</p>