Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / A small problem with the AGK2 player on iPhones...

Author
Message
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 17th Feb 2017 17:46
Hi guys,

Even though I don't publish on iOS yet due to my maclessness (Although I'm hoping to get one soon); I have been testing my last couple of projects on iOS with the AGK2 player.

It's worked pretty well so far, but then all of the things I've tested so far have been portrait. This is where the problems lie, because my current project is in landscape mode.

On android, to run a landscape app in the player, you start the player and turn the phone so it's landscape. If you do this on iOS then the player just remains in portrait. And when I run the app, it stays in portrait mode which is obviously not ideal for testing.

I have seen this behaviour on a iPhone 4S and a iPhone 6+.

Has anyone else noticed this?
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 17th Feb 2017 22:39
Maybe you could use setorientationallowed() to force landscape mode
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 18th Feb 2017 17:02
I'm pretty sure my game already calls that as part of the startup. I'll double check though.
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 20th Feb 2017 09:16
Hold the iPhone landscape when starting the player app.
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 20th Feb 2017 18:00
I've tried that also, but to no avail
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 23rd Feb 2017 17:10
I only have an iPad3 for iOS, but testing the player from the App Store allows me to rotate it into any of the 4 orientations. Do you have the same problem if you export an IPA with landscape orientation set?
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 23rd Feb 2017 17:57
I don't have a Mac (Or an iOS developers licence) as yet, so all I can really do is test with the player.

This is what happens when I start the player (with the phone in landscape mode)


This is my project running on both devices.


It works as expected on Android, but I'm using that to take the photo's with
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 23rd Feb 2017 18:22
What version of iOS are they running? Is anyone else having this problem?
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 23rd Feb 2017 20:17
The 4S is running v9.3.5, and the 6+ is running v10.2.1
damothegreat
User Banned
Posted: 23rd Feb 2017 20:54
Is that a cracked iPhone screen I see?....

I have had a fair few of them and gone away totally from Apple altogether....Hate everything about Apple..

But we do need to still provide apps for them - so good luck in resolving this.
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 24th Feb 2017 02:16
My iPad3 is running 9.3.5 as well so it's not the iOS version. It seems strange that Apple would prevent an app running in landscape mode on a phone, have you tried restarting the device?
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 24th Feb 2017 08:49
@damothegreat:
Yeah, the 6+ is cracked. It's a hand-me-down (like most of my test devices are) and for the amount of use they get its not worth fixing the screen.

@Paul Johnston:
Both devices were freshly booted before the photo's above were taken.
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 24th Feb 2017 11:36 Edited at: 24th Feb 2017 11:45
@Paul Johnston:
Sorry for the double post, but I just thought of something... On your iPad, you can use it either landscape or portrait can't you? (I only have android tablets to hand and can't test this, as sadly my old iPad2 died an uneconomical to repair kind of death). Where as with iPhones, they only display the home screen in portrait. I think this is what the problem is with the iOS AGK2 Player and why it works ok on the iPad, as it can rotate the home screen. Just a thought, is there anyone else out there with an iPhone and an iPad who can test this?

>Edit<
I'm an idiot, apparently BOTH my iPhones had the 'portrait lock' thing activated! Boy do I feel stupid, sorry to have wasted your time Paul
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 24th Feb 2017 20:14
Glad you figured it out, I would've suggested checking the portrait lock as well as it's messed me up a few times in the past! I've had no problems with the player in landscape on any Android or iOS device.

Login to post a reply

Server time is: 2024-04-25 09:30:16
Your offset time is: 2024-04-25 09:30:16