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.
IS MOBILE behaviour
- 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
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/
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/
Thanks Martin. Any chance to be able to test specifically for tablets (the size matters here, not just the operating system).
- 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
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/
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/