Hi,
How can I detect whether the user is running a tablet or phone? I thought I could use Ext.is.Phone for example, but this doesn't seem to work in PR3.
Thanks
Hi,
How can I detect whether the user is running a tablet or phone? I thought I could use Ext.is.Phone for example, but this doesn't seem to work in PR3.
Thanks
It's moved to Ext.os. Here are a couple examples:
Ext.os.is.Desktop
Ext.os.is.Phone
Ext.os.is.Tablet
It's moved to Ext.os. Here are a couple examples:
Ext.os.is.Desktop
Ext.os.is.Phone
Ext.os.is.Tablet
Mitchell Simoens @LikelyMitch
Check out my GitHub:
https://github.com/mitchellsimoens
Posts are my own, not any current, past or future employer's.
I don't know if this has changed for 2.0 but in 1.1 we had to do this for Android and Playbook tablets.
Code:// Need manual check for Android and Playbook tablets Ext.is.platforms.push({ property: 'userAgent', regex: /(?=.*android)(?=.*mobile)/i, identity: 'AndroidPhone' }, { property: 'userAgent', regex: /playbook/i, identity: 'Playbook' }); Ext.is.init(); Ext.is.AndroidTablet = Ext.is.Android && (!Ext.is.AndroidPhone); Ext.is.Tablet = Ext.is.iPad || (Ext.is.Android && !Ext.is.AndroidPhone) || Ext.is.Playbook || Ext.is.Desktop; Ext.is.Phone = !Ext.is.Tablet;
Mitchell Simoens @LikelyMitch
Check out my GitHub:
https://github.com/mitchellsimoens
Posts are my own, not any current, past or future employer's.
I have use this code below code, i would like to identify the device by uuid but its not showing the uuid.
requires: ['Ext.device.Device'],
launch: function() {
alert([
'Device name: ' + Ext.device.Device.name,
'Device platform: ' + Ext.device.Device.platform,
'Device UUID: ' + Ext.device.Device.uuid
].join('\n'));
}
May you please help me on how can i retrive the uuid or even IMEI Number