IPhone5-Bottom of game cut off. No plugins example

Bugs will be moved here once resolved.

Post » Sat Oct 19, 2013 3:52 pm

I sincerely hope everything is okay right now with .capx and you could take a look Ashley as this bug is pretty serious.

Link to .capx file (required!):
https://www.dropbox.com/s/al1e1n4dr80y7le/NoPluginsExample.capx

Steps to reproduce:
Run the game on iphone5

Observed result:
https://www.dropbox.com/s/ir8u2lfz561z013/photo.jpg

Expected result:
Screen shouldnt be cut off on the bottom, should look like this:
https://www.dropbox.com/s/1z03l3auqd3wplg/Screenshot%202013-10-18%2021.24.02.png

Browsers affected:
Chrome: no
Firefox: no
Internet Explorer: no

Operating system & service pack:
iphone 5 with ios6 and ios7

Construct 2 version:
any but ive used 139-146
    
B
22
S
7
Posts: 94
Reputation: 1,783

Post » Sun Oct 20, 2013 1:18 pm

Edited out.PKrawczynski2013-10-21 13:49:13
B
22
S
7
Posts: 94
Reputation: 1,783

Post » Mon Oct 21, 2013 1:48 pm

Disregard what I said earlier about letterbox. I got report from 3 separate publishers it doesnt fix issue and seen it on friends phone. PKrawczynski2013-10-21 14:55:00
B
22
S
7
Posts: 94
Reputation: 1,783

Post » Mon Oct 21, 2013 4:07 pm

I have been able to reproduce this on an iPhone 4S running iOS 7 only. We don't have an iPhone 5 to test on right now, but I believe it's the same issue. I was unable to reproduce on iPad, nor on the iPhone with iOS 6, or on any Android device at all. So it appears limited to iPhones with iOS 7 only.

As far as I can tell this is not a Construct 2 bug. It is simply the unfortunate way that Safari on iOS 7 works. When on the iPad the UI bars are locked in-place and never come and go. However on the iPhone Safari iOS7 implements a fullscreen-when-in-landscape mode, unless the user touches near the top or bottom of the screen, in which case it brings the UI bars back. Worse, the UI bars float over the game content area. So Safari is telling the game that the available size of the window is an area including that which the toolbar covers. Therefore the game is taking the correct size that it is being told to, but Safari then covers up part of the game with its own UI, creating the "cut off" appearance.

We are not aware of any technical means by which we can work around this. We understand it is also affecting many other developers and publishers using other HTML5 engines (see: http://www.mobilexweb.com/blog/safari-ios7-html5-problems-apis-review, http://www.html5gamedevs.com/topic/1436-ios7-is-going-to-break-your-games/). However there is one workaround the user can do: rotating the device to portrait then back to landscape restores the fullscreen view, without cutting off any of the game with toolbars. However as soon as the user touches near the top or bottom again, the toolbars come back and the same problem occurs.

A way to make the problem less likely to occur is to move all buttons and controls closer to the middle of the screen. Some of your buttons, such as the "Continue" button on the Storyline layout, sit mostly within the bottom area where a touch brings back the toolbars. If it were moved closer to the middle of the screen, touching it would probably not bring the toolbars back; unfortunately, if the user even accidentally touches near the top or bottom, or the gameplay requires it, the toolbars come back again and the user must go portrait then landscape to remove them again.

Since we are not aware of a good way to work around this from our engine, all we can recommend is that you and all your affected sponsors and publishers petition Apple to fix the problem. If they implemented the Fullscreen API, which Construct 2 has supported for a long time, the problem would almost certainly be resolved. This would allow you to explicitly switch in to fullscreen using the Browser object's 'Request fullscreen' action, which is supported in Chrome for Android and a few other platforms. This allows fullscreen (and in some cases, orientation-locked) display without ever showing any toolbars, unless the user performs a specific gesture (e.g. swipe down from top in Chrome for Android). So perhaps implement fullscreen support this way, testing on Chrome for Android, and petition Apple to add fullscreen API support. If they do and your game already supports it then it will be fixed as soon as Apple adds support.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

Post » Tue Oct 22, 2013 7:44 pm

Like I said in my first post - it also happens on ios6 with iphone5 so I think it would be great to investigate bit further whats going on.

I can also confirm one dev was able to make game work on fullscreen with this piece of "code" wchich I applied to my own game

https://www.dropbox.com/s/fnpaxjwgw731oba/Screenshot%202013-10-22%2020.28.13.png

I dont know wchich scale mode he used but im looking into solutions.
B
22
S
7
Posts: 94
Reputation: 1,783

Post » Tue Oct 22, 2013 10:08 pm

I could not reproduce any issue when testing on iOS 6, but it doesn't seem like it matters much, since everyone will be on iOS 7 soon enough anyway.

The events you posted don't look reliable - it looks like it'll break the landscape fullscreen mode, and it will be brittle (since it depends on hard-coded numbers which could easily change in later releases). So we wouldn't want to build something like that in to the engine, although you can try to hack something like that with events if you want.

I would reiterate this is a problem with Safari on iOS 7 - anything that runs in the browser will be affected, not just Construct 2 games.Ashley2013-10-22 22:08:54
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

Post » Tue Oct 22, 2013 10:54 pm

Add to home screen seems to take care of the Safari issues on Ipad.
Image ImageImage
B
170
S
50
G
179
Posts: 8,378
Reputation: 113,425

Post » Wed Oct 23, 2013 12:10 am

Ashley do you understand iphone5 with ios6 is broken? (According to my clients and materials they sent me)

Im not talking only about ios7. We can drop discussion about it already i understand your reasoning.
PKrawczynski2013-10-23 00:17:47
B
22
S
7
Posts: 94
Reputation: 1,783


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests