How to hide URL Bar in Ionic 5 Capacitor using Browser Plugin?

Viewed 1417

Checking the new Ionic Capacitor Docs, there seems NO OPTION to hide the url bar of the Browser Plugin (Previously InAppBrowser) at the moment. Need help please.

2 Answers

According to this discussion on a GitHub Issue thread, this is not going to be possible due to the fact that both the IAB and Browser plugins use SFSafariViewController, which doesn't allow you to hide the native controls.

That said, this has been driving me crazy for a while now, as I can't hide the URL bar in either OS even when using the original IAB.

I use iframe to solve the problem

<iframe src='https://stackoverflow.com/' />  

ps: url use https

Related