Reputation: 12064
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
Upvotes: 22
Views: 3097
Reputation: 1678
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.
http://localhost
write http://[YOUR-LOCAL-IP-ADDRESS]
to access your web app.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:
In my case it's 192.168.10.33
so the url will be http://192.168.10.33
Result:
Upvotes: 1