# How to hide the address bar and bottom bar in webview

**URL:** <https://community.auth0.com/t/how-to-hide-the-address-bar-and-bottom-bar-in-webview/79191>\
**Category:** Get Help\
**Tags:** page, login, auth0\
**Created:** [March 3, 2022, 8:13am UTC](https://community.auth0.com/t/how-to-hide-the-address-bar-and-bottom-bar-in-webview/79191 "2022-03-03T08:13:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tianyaluyi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tianyaluyi/32/35590_2.png) [@tianyaluyi](https://community.auth0.com/u/tianyaluyi)\
**Post date:** [March 3, 2022, 8:13am UTC](https://community.auth0.com/t/how-to-hide-the-address-bar-and-bottom-bar-in-webview/79191/1 "2022-03-03T08:13:59Z")

</div>

**android**

 ![Screen Shot 2022-03-03 at 4.13.14 PM](https://global.discourse-cdn.com/auth0/original/3X/e/3/e387d1b1c1270f72eecd0d9da8d0fa717f8b35fb.jpeg)

**ios**

 ![Screen Shot 2022-03-03 at 4.16.48 PM](https://global.discourse-cdn.com/auth0/original/3X/8/0/80c4dfc1e7e877ddf20f82f9d580562591c1464b.jpeg)

using ionic and capacitor platform  
this address bar is very unfriendly!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 4, 2022, 11:38pm UTC](https://community.auth0.com/t/how-to-hide-the-address-bar-and-bottom-bar-in-webview/79191/3 "2022-03-04T23:38:18Z")

</div>

Hi @tianyaluyi welcome to the community!

Are you by chance building off of sample app of ours? While I’m not super familiar Ionic/Hybrid approaches, I’ve been testing using our sample app [here](https://github.com/auth0-samples/auth0-ionic-samples). I know in general we don’t recommend using a WebView given it’s against OAuth best practices and we almost always recommend going the Chrome Custom Tab/Safari View Controller route as mentioned in this post (Directed at native development, but similar idea):

> [@Using webview to login on Android instead of browser](https://community.auth0.com/t/using-webview-to-login-on-android-instead-of-browser/66079/2):
>
> Hi! Embedded login using the web view component is not recommended and the latest SDK does not support this. According to the Best Current Practice for OAuth 2.0 for Native Apps, only external user agents (such as the browser) should be used by native applications for authentication flows. Using the browser to make native app authorization requests results in better security and it gives users the confidence that they are entering credentials in the right domain. It also enables use of the use…

I know our sample implements [@capacitor/browser](https://capacitorjs.com/docs/apis/browser) which uses Safari View Controller on iOS and Chrome Custom Tabs on Android. You may be able to hide the address bar in a WebView but that’s a bit outside the scope of what Auth0 in particular can control.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 18, 2022, 10:03pm UTC](https://community.auth0.com/t/how-to-hide-the-address-bar-and-bottom-bar-in-webview/79191/4 "2022-03-18T22:03:46Z")

</div>


