Is on mobile?

Get help using Construct 2

Post » Tue Aug 30, 2016 7:30 pm

I'm not finding any reasonable methods to determine if a web game is being played on a mobile device.
Has anyone found a way?
If not can we get one implemented?
Image ImageImage
B
169
S
50
G
170
Posts: 8,292
Reputation: 108,728

Post » Tue Aug 30, 2016 7:48 pm

newt wrote:I'm not finding any reasonable methods to determine if a web game is being played on a mobile device.
Has anyone found a way?
If not can we get one implemented?


Is the Is On Mobile system expression no good?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,388
Reputation: 58,458

Post » Tue Aug 30, 2016 8:54 pm

OK, thanks.
Thought there was something, but it's not in the browser plug apparently.
Image ImageImage
B
169
S
50
G
170
Posts: 8,292
Reputation: 108,728

Post » Wed Aug 31, 2016 10:24 am

I am skeptical of relying on this and wonder if the system condition ought to exist at all. The question is "what defines mobile?" Most people would say a tablet qualifies, but then what if you add a keyboard? Then a mouse? Now you have a laptop, which most people would say qualify as a desktop type system. What about a large phone with a mouse and keyboard attached? Where do you draw the line? If you force a touch-only UI on these devices, aren't you ignoring the fact they can type and use a mouse?

IIRC the condition basically checks if it's a "mobile OS", i.e. Android, iOS, Windows Phone (which now is just part of Windows 10, making the distinction even blurrier). But note those devices can also run in what is essentially a desktop mode.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842

Post » Wed Aug 31, 2016 12:58 pm

Unfortunately I'm working with third parties, and they only work on mobile.
I'd try to find out how they define mobile, but that really won't give me a solution, as they don't offer a way to determine if its working or not.
Image ImageImage
B
169
S
50
G
170
Posts: 8,292
Reputation: 108,728


Return to How do I....?

Who is online

Users browsing this forum: Kermad, yiuyiu6666 and 20 guests