Amazon Kindle Fire not yet regarded as mobile device?

Discussion and feedback on Construct 2

Post » Wed Apr 16, 2014 4:11 am

Hello all, while I am trying to submit my game for FGL mobile plat, I encountered a problem with Kindle Fire.

The problem is the orientation detector doesn't trigger the event.

After a series of test, I suspect it is because Kindle Fire has not yet regarded as "mobile device" so the system condition "Is on mobile device" return false.

With this problem, it become impossible to differ desktop with Kindle Fire. What OK in desktop (and other mobile device) would break KF, and vice versa.

Thank you very much. :)
B
21
S
5
G
1
Posts: 39
Reputation: 2,715

Post » Wed Apr 16, 2014 5:27 am

Use the browser object, Request fullscreen, lock orientation... easy :)
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Wed Apr 16, 2014 12:42 pm

I've updated the next build to detect Kindles as mobile devices, but what do you mean by "orientation detector"?
Scirra Founder
B
397
S
236
G
88
Posts: 24,408
Reputation: 194,506

Post » Wed Apr 16, 2014 2:07 pm

That's interesting. I'm having touch issues. Though that could be code on my part.

If you having troubles doing device detection there are different ways. As an example you can do a search on the browser type for "silk". Which Silk is the modified browser for Kindle devices. There are other ways than just "isMobile"
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Wed Apr 16, 2014 4:20 pm

@Ashley

Can you please check the tilt (Touch ->Gamma Orientation) my game that uses tilt are not working on Kindle Fire.

Thanks
B
79
S
22
G
14
Posts: 389
Reputation: 12,324

Post » Wed Apr 16, 2014 4:26 pm

@tumira - we use a standards-compliant way to retrieve those values. If it doesn't work, either the device does not have the necessary hardware, or the browser is missing the feature. Either way it's Amazon's responsibility.
Scirra Founder
B
397
S
236
G
88
Posts: 24,408
Reputation: 194,506

Post » Wed Apr 16, 2014 4:33 pm

@Ashley
Thank you for the info.

@baterism
FGL now wants us to disable the device orientation checking. They will implement it on their side.

https://www.fgl.com/view_thread.php?thread_id=47123&offset=275#post338359
B
79
S
22
G
14
Posts: 389
Reputation: 12,324

Post » Wed Apr 16, 2014 4:38 pm

@BluePhaze Thanks for suggestion. But, it didn't work :(
@Ashley Thanks a lot! The orientation detection is for requirement for FGL HTML5 program. Before, they require the game to stay portrait or stay landscape. When the game is on wrong orientation, stop the game and put out message to player.

About the orientation detector, I use browser condition:
+is on mobile device
"on landscape" -> show message.
It works well on iOS and Android, but it never triggered on Kindle Fire.

Fortunately, they remove that requirement so the game is OK as long as it keep the aspect ratio using letterbox scale :)

@jayderu Thanks! Are you referring to Browser.Product? Worth try.

@tumira Yeah, I also just aware of that. Good news. :D
B
21
S
5
G
1
Posts: 39
Reputation: 2,715

Post » Wed Apr 16, 2014 4:41 pm

I'm still not sure what you mean. Construct 2 doesn't have any built-in orientation checking. There is no "On landscape" trigger. There is an "Is portrait" condition in the Browser object, but it just checks if the screen width is narrower than the height, which should work on any device.
Scirra Founder
B
397
S
236
G
88
Posts: 24,408
Reputation: 194,506

Post » Wed Apr 16, 2014 4:58 pm

@Ashley Yes, I mean "Is Landscape" and "Is Portrait". I also aware that it just check WindowHeight and WindowWidth.

The problem is I tried to differentiate mobile device (which will show message if on landscape mode) and desktop (which will not show message, because it will always on "landscape mode").

WIthout the ability to tell KindleFire is also a mobile device, the problem appeared because what showed on KF is the desktop version.
B
21
S
5
G
1
Posts: 39
Reputation: 2,715

Next

Return to Construct 2 General

Who is online

Users browsing this forum: disneycom2, kazdalugur and 8 guests