PDA

View Full Version : iBBDemo and Sencha - Ext.is.Phone call problem



dgilfillan
31 May 2011, 9:09 AM
Hi,

when I view Sencha touch apps in iBBDemo2 (operating as iPhone), Ext.is.Phone returns false, yet the call seems to work in Android simulators and I am sure the call is suppose to recognise the iPhone or iOS?

Can anyone help? or perhaps confirm if this is occurring?

Thx.

Hanni Sullivan
1 Jun 2011, 1:41 AM
I don't have iBBDemo2 installed right now, but my guess would that iBBDemo2 does not identify itself as an iPhone. As far as I know iBBDemo2 ist just a WebKit browser wrapped in an iPhone skin.
Have a look at the user agent string of iBBDemo2: Go to http://whatsmyuseragent.com/ and check the user agent it returns. Ext.is.Phone checks the user agent to determine whether the device is a phone or not:

this.Phone = !this.Desktop && !this.Tablet;

with

this.Desktop = this.Mac || this.Windows || (this.Linux && !this.Android);