How to see mobile view of a website in Android device

Hi, I developed an app contains a website in it.

When I open it by iPhone, the website automatically can be seen in mobile view, but in Android, same code, the website will only show desktop view, anyway to change it back to mobile view?

Thanks a lot.

The code is as below:

myWebView = native.newWebView(display.contentWidth/2, display.contentHeight/2+100,display.contentWidth-190, display.contentHeight) myWebView:request("http://stonehkhk.wix.com/sydney")

There is a good chance that they are not detecting that it’s a mobile device. I’ll ask engineering if there is anything that we can do, but most likely WIX needs to do better Android detection.

Rob

Hi, thanks a lot Rob Miracle, the website can be seen in mobile view in android devices through their browser, however, cannot be mobile view in the app.

Do you know anything I can do? Cheers.

The way I read that Android documentation, Chrome is probably sending an user agent that WIX is recognizing. The WebView is sending something different. We don’t have a way to control the UA header. You might want to send WIX’s support a message referencing the Google documentation and see if they can adjust their handling of the Android webView UA better.

Rob

There is a good chance that they are not detecting that it’s a mobile device. I’ll ask engineering if there is anything that we can do, but most likely WIX needs to do better Android detection.

Rob

Hi, thanks a lot Rob Miracle, the website can be seen in mobile view in android devices through their browser, however, cannot be mobile view in the app.

Do you know anything I can do? Cheers.

The way I read that Android documentation, Chrome is probably sending an user agent that WIX is recognizing. The WebView is sending something different. We don’t have a way to control the UA header. You might want to send WIX’s support a message referencing the Google documentation and see if they can adjust their handling of the Android webView UA better.

Rob