Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome dev tools to emulate mobile devices with navigation bar

Hey I'm a web developer and I'm looking for a way to emulate mobile devices which also displays their respective navigation bars, toolbars etc. In the 'Device toolbar' in Google Chrome (v58 on macOS) there's a specific mode available for the Nexus 5X (and 'supported devices', according to Google), which is exactly what I'm looking for (see screenshot below), however I can't seem to find a way to turn this on for other devices (such as iPhones, Galaxys etc).

Of course these bars would differ between the devices and the browser that it's running, so ideally I'm looking for a way to manually specify the height of the bars and how they interact with the viewport (e.g. iOS Safari includes the top bar in the viewport height calculation but leaves out the bottom bar, which kinda screws with how the bottom of the page is being displayed (as discussed here)).

Ultimately what I'm trying to achieve is a way to accurately simulate how a website would look on a specific device, by instead of looking at just screen sizes and pixel density actually taking in to account that there are other sections being displayed on the screen which of course takes up screen realestate themselves and affect the appearance and user experience.

All ideas are welcome =)

like image 522
Martin Avatar asked May 17 '17 02:05

Martin


People also ask

How do I add a custom emulated device to Chrome?

Start Chrome, navigate to the web page you want to test and open the Developer Tools (Menu > Tools > Developer Tools, Cmd + Opt + I on macOS or F12 / Ctrl + Shift + I on Windows and Linux). While not quite an iOS or Android emulator, a number of mobile devices running both platforms can be selected as presets.

Where is the device tab for simulating mobile devices?

Emulated Devices Settings If there is a need to add a new mobile resolution to a predefined list, we can simply do that in Developers Tool Menu (F11) > Devices tab. On this tab, we can enable/disable existing devices or add a new one. Options available for defining a new device: device name.

Can you use Chrome dev tools on mobile?

This works great in all platforms, including Chrome OS, though do note that on Windows, you'll need to first install proper USB drivers to talk to the device. If you've never tried it before you'll also need to enable USB debugging on the device and confirm you're using Chrome for Android Beta.


1 Answers

You can use Blisk browser, it's built on Chromium and supports toolbars and panels for IOS/Android devices, it has a good set of devices that you can emulate on.

like image 74
kristian Avatar answered Sep 19 '22 19:09

kristian