How I know if its running on Android or iOS

Get help using Construct 2

Post » Tue Dec 02, 2014 7:28 pm

With a phonegap game, how can I know in what device it is running, Android or iPhone, iPhone or iPad, screen size and all that

Thank you
Image
B
15
S
4
G
4
Posts: 134
Reputation: 3,177

Post » Wed Dec 03, 2014 11:54 am

Write a wrapper in C2, it has option to check if device is running on android or IOS or etc..
Image
B
52
S
12
G
1
Posts: 256
Reputation: 4,510

Post » Wed Dec 03, 2014 12:16 pm

Check the browser plugin's expressions.
Name, Platform, UserAgent can be used.

Check those with a simple system "Compare two values".
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
292
S
115
G
96
Posts: 7,295
Reputation: 70,795

Post » Thu Dec 04, 2014 4:33 am

Do I have to incorporate the full browser plugin just for that? Isnt there a better way, like a phonegap object??
Image
B
15
S
4
G
4
Posts: 134
Reputation: 3,177


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 36 guests