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
47
S
11
G
1
Posts: 254
Reputation: 4,251

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
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

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: jkmalau, Yahoo [Bot] and 16 guests