Re:Chrome DevTools for Mobile: Screencast and Emulation
by mladenkovacevic on Tuesday December 03, 2013 @01:24PM
(#6842057)
I'm really in need of accurate iOS Safari emulation in the browser so I hope this brings it. I have a javascript "push-menu" effect that works properly on every device except the iPhone's Safari and debugging it is proving tedious because the effect works in the current dev tols "simulation" of the iPhone as well. On every device the push-menu pushes the other content aside, leaving the button that activated the originally hidden menu still visible. On mobile Safari, the menu covers up the existing content, including the button I would use the close the menu.
[ Parent
| on HN ]
Re:Chrome DevTools for Mobile: Screencast and Emulation
by lambda on Tuesday December 03, 2013 @02:11PM
(#6842375)
Note that Chrome for Android (and the desktop emulator) are very different than Safari on iOS. Even when they were both built on top of Webkit, they had different renderers and platform bindings (and the iOS binding was not open source, which caused some of the friction that caused the split). Now that Blink has forked from Webkit, they are diverging even further.
So while this means you can do basic mobile web development this way, testing that your UI generally works on mobile devices, it's not substitute for testing and developing on actual iOS Safari.
Re:Chrome DevTools for Mobile: Screencast and Emulation
by thousande on Tuesday December 03, 2013 @03:15PM
(#6842855)
More details about this here: http://www.paulirish.com/2013/webkit-for-developers/
Re:Chrome DevTools for Mobile: Screencast and Emulation
by lambda on Tuesday December 03, 2013 @03:35PM
(#6842997)
Right. And this was before the Blink fork; they've diverged even further by now.
Re:Chrome DevTools for Mobile: Screencast and Emulation
by untog on Tuesday December 03, 2013 @01:48PM
(#6842216)
You can remotely debug a Safari session on a device - but it has to be through desktop Safari. It's in the Develop menu.
Re:Chrome DevTools for Mobile: Screencast and Emulation
by mladenkovacevic on Tuesday December 03, 2013 @01:59PM
(#6842301)
I'm on Linux and installing a virtual box with a Safari browser just for that seems like too much trouble. I have access to my brother's iPhone but it's annoying for me and for him to have to push my changes to a staging site then go "hey can I use your iPhone for a second" every 5 minutes.
Re:Chrome DevTools for Mobile: Screencast and Emulation
by untog on Tuesday December 03, 2013 @02:02PM
(#6842319)
Honestly, you're never going to be able to replicate the iPhone without using the browser engine it uses. These Chrome Dev Tools will have nothing to do with iPhone Safari.
Re:Chrome DevTools for Mobile: Screencast and Emulation
by mladenkovacevic on Tuesday December 03, 2013 @02:10PM
(#6842371)
Yeah it seems like I'm better off just getting a used 4S.
Re:Chrome DevTools for Mobile: Screencast and Emulation
by troels on Tuesday December 03, 2013 @02:47PM
(#6842661)
Or get a cheap mac (mac mini, for example). Then you can run the iPhone emulator and use Safari to debug. Works really well.
Edit: Oh, you mean you tried this, but it works differently? Or are you using some linux-based dev tools?
Re:Chrome DevTools for Mobile: Screencast and Emulation
by mladenkovacevic on Tuesday December 03, 2013 @03:07PM
(#6842805)
No I've just been using the iPhone user agent "simulation" in Chrome's dev tools. All this does I think it set a reasonably correct resolution and scaling factor, but all the other rendering specifics get overlooked.
Re:Chrome DevTools for Mobile: Screencast and Emulation
by troels on Thursday December 05, 2013 @01:47AM
(#6853038)
OK. The iPhone simulator that comes with Xcode is really close to the real thing. You need a mac for it though.
Re:Chrome DevTools for Mobile: Screencast and Emulation
by micampe on Tuesday December 03, 2013 @02:30PM
(#6842533)
an iPod touch may be even cheaper.
Re:Chrome DevTools for Mobile: Screencast and Emulation
by abjourn on Tuesday December 03, 2013 @03:21PM
(#6842894)
I have had success debugging iOS Safari layout issues with https://github.com/google/ios-webkit-debug-proxy. It claims to support Linux, but I have only used it on a Mac. Could be worth a shot.
Re:Chrome DevTools for Mobile: Screencast and Emulation
by mladenkovacevic on Tuesday December 03, 2013 @03:51PM
(#6843098)
This seems pretty cool (actually very similar to at least the port-forwarding part of OP's article - except for iOS), but I imagine on Linux you'd still need a device. On a Mac you could just use the Xcode's iOS simulator.
Re:Chrome DevTools for Mobile: Screencast and Emulation
by MaxGabriel on Tuesday December 03, 2013 @10:45PM
(#6844916)
You don't need to push your changes to a staging server. Just have your computer and iPhone on the same wifi network. Then direct the iPhone's browser to your computer's IP address:port
e.g. 192.168:56:65:4000
Re:Chrome DevTools for Mobile: Screencast and Emulation
by mladenkovacevic on Wednesday December 04, 2013 @12:14AM
(#6845161)
Ah yes of course that makes sense. Can you tell I'm a total newb :) Thanks.
Re:Chrome DevTools for Mobile: Screencast and Emulation
by cleverjake on Tuesday December 03, 2013 @02:43PM
(#6842624)
check out browserstack.com
Re:Chrome DevTools for Mobile: Screencast and Emulation
by mladenkovacevic on Tuesday December 03, 2013 @03:31PM
(#6842963)
This seems like the holy grail and I will definitely do the free trial to test it out but at this point I am not getting paid for my website development efforts so I'm not ready yet to pay a monthly fee for this (just hacking on something for myself).
Re:Chrome DevTools for Mobile: Screencast and Emulation
by cleverjake on Tuesday December 03, 2013 @11:58PM
(#6845120)
What I did (before I got someone to pay for it for me :D) was buy an iPod touch on craigslist. Got it for like $80. It was a big stretch, financially, at the time, but the hours upon hours it saved was well worth it. You can also sometimes pick up iPhones with bad esns/cracked screens for a lower than normal cost.
'Course all of that assumes you would need more than 2 months worth of debugging on browserstack.
Good luck, either way
Re:Chrome DevTools for Mobile: Screencast and Emulation
by mladenkovacevic on Wednesday December 04, 2013 @12:19AM
(#6845182)
Yeah this is the way I'll end up going. Less than a $100 is a small investment to make sure my sites show well on such a large segment of devices.
Re:Chrome DevTools for Mobile: Screencast and Emulation
by robertha on Tuesday December 03, 2013 @06:01PM
(#6843834)
It's a great product, unfortunately (for us) the price has been steadily rising. When I first signed up it was $20/month for everything now I think it's $40/month.
Re:Chrome DevTools for Mobile: Screencast and Emulation
by triangleman on Tuesday December 03, 2013 @10:17PM
(#6844790)
You can get free screenshots for nine different browsers by using this link: