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
172
S
50
G
189
Posts: 8,508
Reputation: 118,735

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
138
S
31
G
88
Posts: 5,638
Reputation: 61,207

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
172
S
50
G
189
Posts: 8,508
Reputation: 118,735

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
405
S
239
G
91
Posts: 24,765
Reputation: 197,354

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
172
S
50
G
189
Posts: 8,508
Reputation: 118,735


Return to How do I....?

Who is online

Users browsing this forum: kriand and 25 guests