shodan_uk
13 Aug 2012, 12:43 AM
Hey guys,
I'm trying to develop an app that detects iPhone and iPad and switches profiles automatically. So far, I've been developing using Chrome on the desktop and that's been great. Now that I've implemented the device specific profiles, I can't get it to run in Chrome on desktop, although it's fine on the devices. I'm have the following in my code:
profile/Phone.js
isActive: function() {
return Ext.os.is.iPhone;
},
profile/Tablet.js
isActive: function() {
return Ext.os.is.iPad;
},
If I change the above to
Ext.os.is.Phone and
Ext.os.is.Tablet and set Chrome to override the user agent via dev tools to emulate the iPhone, I can get the app to work in Chrome. I set Chrome to emulate the iPad however, I get nothing.
Any ideas?
Cheers,
Terry
I'm trying to develop an app that detects iPhone and iPad and switches profiles automatically. So far, I've been developing using Chrome on the desktop and that's been great. Now that I've implemented the device specific profiles, I can't get it to run in Chrome on desktop, although it's fine on the devices. I'm have the following in my code:
profile/Phone.js
isActive: function() {
return Ext.os.is.iPhone;
},
profile/Tablet.js
isActive: function() {
return Ext.os.is.iPad;
},
If I change the above to
Ext.os.is.Phone and
Ext.os.is.Tablet and set Chrome to override the user agent via dev tools to emulate the iPhone, I can get the app to work in Chrome. I set Chrome to emulate the iPad however, I get nothing.
Any ideas?
Cheers,
Terry