IS MOBILE behaviour

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
anahum
Posts: 172
Joined: Tue Apr 21, 2009 4:43 am
Location: Chile
Contact:

Somebody can confirm if the new "is mobile" test will detect an iPad 2 as a mobile device or "is mobile" works only for Android and iOS smartphones?

Thanks in advance.
User avatar
Hopki
Gnome
Posts: 13060
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Yes it detects Android and iOS, which includes the iPad.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
CBosch
Posts: 240
Joined: Fri May 23, 2014 11:52 am

Hi,

my iPad Air (Retina) from Sept. 2014 is detected as mobile.
Have a nice day

Christian
User avatar
anahum
Posts: 172
Joined: Tue Apr 21, 2009 4:43 am
Location: Chile
Contact:

Thanks Martin. Any chance to be able to test specifically for tablets (the size matters here, not just the operating system).
CBosch
Posts: 240
Joined: Fri May 23, 2014 11:52 am

Hi,

yes I did it with the logicblock:

mobile = true AND
screenwidth > 800 (for my purpose, maybe you have to adapt the needed size)

Important is the AND
Have a nice day

Christian
User avatar
Hopki
Gnome
Posts: 13060
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Guys,
Christian has hit it on the head, the Is Mobile detects iOS, Android and IEM, then you can look at the logical screen size.
Example:
Is Mobile and then screen Width = 667 AND screen height = 375 would be iPhone 6 landscape.
Is Mobile and then screen Width = 375 AND screen height = 667 would be iPhone 6 portrait.

Is Mobile and then screen Width = 1024 AND screen height = 768 would be iPad landscape.
Is Mobile and then screen Width = 768 AND screen height = 1024 would be iPad portrait.

But I think just working with width would just just as good, using both width and height means you can almost target a device.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply