hi,
i'm using this condition to detect the ipad on ios
Browser.ExecJS("navigator.platform.toLowerCase().indexOf('ipad') > -1")
i would like to know how to done it on android for tablet ?
thank you
any help guys ?
up bump
Something as comparing screen size?
hi thank you for reply
how you think i can done it with comparing screen ?
I have not tested this, but maybe if you do a comparation of the windowWidth or windowsHeigth you can detect if the user is on a tablet.
http://screensiz.es/
thank you in advance
Tried, but couldn't think of a way to detect this. Was there a specific reason to design a different experience on tablet vs mobile? You probably have a good reason, but it's typically best practice to design one experience for both.
matrixreal
I have a C2-Plugin that check for tablet or phone it based on mobil-detect.js. But it's not 100% reliable because it depends on 'userAgent' from the Browser and this behaves different on different mobil browsers.
hello guys,
on ios and for ipad i us this condition https://imgur.com/dCROVYG
i would like to know how can i done it for tablet on android ?
thanks
Develop games in your browser. Powerful, performant & highly capable.
Asmodean
thanks for reply
and for your advice
but it did not work
Asmodean thanks for reply and for your advice but it did not work
As I wrote it isn't reliable. If the mobil-Browser is in Desktop-Mode it doesn't work at all. I only tested it on one device with Chrome and FireFox. It works with both.