Android WebView vs CustomTabs

97 views Asked by At

As a part of my project, I'm expected to load a webpage using a web view within the app.

I could either use WebView or CustomTabs but the favoured option was to go with WebView for the UI customisation that was possible.

The issue I found is that for the same URL, the content loaded on the WebView is different from that on the CustomTabs. I'm unsure why this happens and am keep on getting to know how I can observe the same content on both these implementations.

For the sake of an example, loading Facebook login screen looks different on these two implementation. Please find the screenshots below:

[enter image description here](https://i.stack.imgur.com/GbhFF.png)

The content viewed on the CustomTab is what is desired. I would like to know how/what steps I need to take inorder to recreate the same experience on WebView as that of the CustomTabs

0

There are 0 answers