7 Sep 2010 9:32 AM #1
Testing iPhone app wihout iphone (or simulator): Chrome user agent spoofing?
I have an app that makes frequent use of Ext.platform.isIPhoneOS to build an iPhone-specific UI. I see that this boils down to Ext.userAgent (which, I think, uses navigator.userAgent).
Does anyone have a clever way of doing iPhone testing via Chrome? I realize that ultimately it should be tested on an actual Apple device, but my employer hasn't provided any yet.
7 Sep 2010 9:43 AM #2
chrome doesn't have all of the bells and whistles that mobile webkit for the iphone does.
Are you using windows? If you're on a mac, you can use safari 5.x.
7 Sep 2010 9:55 AM #3
Thanks Jay. Due to environment restrictions, I only have access to Windows for the time being. Would you recommend Safari for Windows over Chrome?
7 Sep 2010 9:59 AM #4
Good lord, no. heh. Apple products on windows are worse than microsoft products on the mac.
Simply set it to true in your code for the time being.
Ext.platform.isIPhoneOS = true;
Just don't expect SenchaTouch be 100% accurate. :-\ There are things that mobilewebkit offer that chrome does not.
7 Sep 2010 10:06 AM #5
And since I've already embarrassed myself: mobilewebkit is just a webkit port that really only exists inside Mobile Safari (and maybe in Android), correct (hence the need for real testing in the iPhone Simulator or via an actual device)?
7 Sep 2010 10:07 AM #6
From my understanding its that + native touch event implementation (iOS -> webkit) and custom CSS3 transitions.
7 Sep 2010 1:21 PM #7
I've just started with Sencha Touch and after a lot of downloads and trial/error I've been using Chrome for development and testing too. I was hoping I might find a better suggestion or some alternatives in this thread, but maybe there aren't any better methods. Has anyone tried Android OS in a VM?Try the Sencha Learning Center
7 Sep 2010 4:20 PM #8
From the kitchen sink example, Google Chrome (Ubuntu) seems to do the trick, however it's more of a iPad simulator than an iPhone one.
9 Sep 2010 10:01 AM #9
API Documentation for Ext.platform.isIPhoneOS
I am just getting started with Sencha Touch. I would like to learn more about the suggested solution, but I am unable to find this in the Touch or the Ext API documentation.
Should I be looking elsewhere?
9 Sep 2010 10:45 AM #10Eugene
Ext.Direct for ASP.NET MVC
By tomalex0 in forum Sencha Touch 1.x: DiscussionReplies: 4Last Post: 8 Jan 2013, 10:28 PM
By jamespaxi in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 28 Jul 2010, 3:39 PM
By inapp in forum Sencha Touch 1.x: DiscussionReplies: 7Last Post: 21 Jul 2010, 5:59 PM
By jsakalos in forum Community DiscussionReplies: 25Last Post: 4 Apr 2010, 1:08 PM
By Judy in forum Community DiscussionReplies: 5Last Post: 24 Feb 2009, 3:36 AM