Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browser Mobile emulator: how to simulate the navigation bar on all devices?

I use the dev tools from chrome simulator to simulate mobile.

Problem is : when opening on real device, the render is different since real device has some navigation bars.

Chrome dev tools can add this ..only for Nexus5 (and besides it does not add the browser navigation bar)

https://developers.google.com/web/tools/chrome-devtools/device-mode/emulate-mobile-viewports

My question is: how to make simulations like on "real devices" ?

Regards

like image 654
yarek Avatar asked Nov 18 '25 12:11

yarek


1 Answers

You can emulate a smartphone with Android Studio.

You need to create a Virtual device manager.

Then you will be able to access your website by emulating your device manager.

Be carefull, you will not be able to access you website with localhost (in your emulated device). Instead you have to pass your local IP in the url bar.

  • Instead of http://localhost write http://[YOUR-LOCAL-IP-ADDRESS] to access your web app.
  • If your web app use a front framework (react, vue, angular) and you use a local API don't forget to change all your localhost to [YOUR-LOCAL-IP-ADDRESS] inside your app.

To get your local ip adress (in linux) type hostname -I, use the first ip adress of the output:

enter image description here

In my case it's 192.168.10.33 so the url will be http://192.168.10.33

Result:

enter image description here

like image 174
Lenny4 Avatar answered Nov 20 '25 06:11

Lenny4



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!