Amazon Kindle Fire not yet regarded as mobile device?

Discussion and feedback on Construct 2

Post » Wed Apr 16, 2014 5:38 pm

Don't use is on mobile, just check for portrait or landscape... if PC's are always on Landscape then they won't trigger the on portrait event anyway right... so no need to test for mobile...
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Wed Apr 16, 2014 5:51 pm

@BluePhaze The reason I put "is on mobile" is because I made the game stop when "is landscape". Without the "mobile" condition the game would be unplayable on desktop.
The requirement was: the game should support both orientations with out letterbox scale (no black bars), or support ONLY one.

Thank God, the requirement was removed. :)
B
21
S
5
G
1
Posts: 39
Reputation: 2,715

Post » Wed Apr 16, 2014 6:36 pm

Awesome! Glad to hear they removed that... I have my game set to request full screen, then if portrait it pauses and shows an image that says to rotate the screen. Hopefully that is enough.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Wed Apr 16, 2014 8:11 pm

You can still get around "isMobile"

Require the player to touch the screen to continue. Best do this on a screen that's black with an image that can look good in both orientations.

Determine if the input was Mouse or Touch. I do this by getting making sure Mouse is at the Top. Mouse will fire a Touch event, but a Touch event won't fire a Mouse event. So on MouseClick store the type of input recieved.

If it's a Mouse your on PC
If it's Touch your on mobile

isMobile will always be better, but there are work arounds until the device is registered as such
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Fri Apr 18, 2014 1:02 am

@jayderu That's pretty smart! Thanks for sharing. :)
B
21
S
5
G
1
Posts: 39
Reputation: 2,715

Post » Fri Apr 18, 2014 2:56 am

oh also. If you don't want to sort that out and you just want to handle a specific browser such as Kindle. You can do

Compare Two Values
find( Browser.userAgent, "Silk")
>=
0

If it's on the kindle that will work as mobile. Then you can do
isMobile
OR
compareTwoValues.....
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Tue Apr 22, 2014 12:41 pm

I created a simple countdown-app and I submitted it to Amazon but it got rejected twice because it does not run on Kindle (old and new devices). They said: "Upon launch, the app force closes, crashes, or displays only a blank screen." Its really just a few text objects, a few static sprites and simple math which should run on almost any 10 year old calculator. :-/

I dont have a Kindle to test it so its hard to say why it does not work.
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
55
S
16
G
6
Posts: 732
Reputation: 9,263

Post » Tue Apr 22, 2014 2:30 pm

@Bl4ckSh33p
How are you running the app?
Are you running a non official app. I find an overlooked non Scirra plugin is the cause many times.
I have a Fire. I can take a look if you want.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Tue Apr 22, 2014 4:36 pm

Its running as mobile app in the browser (on iOS/Android) (not packaged). I assumed this would work on Kindle, too.
I used only one plugin to get system date/time (viewtopic.php?t=63492&start=0).
The app is hosted on clay.io but not approved, yet (and costs 0.99$). But I can upload it on my server so you can test it.

Does it have to be in a special (export)format to run on Kindle?
I can send you a private message with the URL and login details.
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
55
S
16
G
6
Posts: 732
Reputation: 9,263

Post » Tue Apr 22, 2014 9:48 pm

I'm not at home. But later tonight. However if your hosting on clay.io. are you using the Clay.io plugin? the clay.io plugin is not a Scirra plugin. Also clay.io uses additional web frames that maybe causing problem. But I can check tonight. the PM is fine :)
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests