Skip to main content
Inspiring
November 6, 2012
Answered

Gyroscope problem with iPhone/iPod Touch 4th Generation with iOS 6

  • November 6, 2012
  • 2 replies
  • 2722 views

We have built an app using AIR 3.4 SDK and are facing issues only with this device configuration - iPhone/iPod Touch 4th Generation with iOS 6

Has anyone had similar issues. For Gyroscope data, we're using this native extension - http://www.ketzler.de/2011/11/adobe-air-gyroscope-native-extension-with-euler-angles-roll-pitch-yaw-for-ios/

Any help is appreciated.

Thank you.

This topic has been closed for replies.
Correct answer kirit_tanna

Did you ever come up with a sollution for this ? im facing a similar issue


Yes, the problem is that the Gyroscope consumes a lot of CPU if the update interval is set to a low value.

We've managed to resolve this recently by using the Gyroscope extension by Distriqt - http://distriqt.com/native-extensions#gyroscope and setting the update interval to SENSOR_DELAY_NORMAL (http://extensions.distriqt.com/docs/gyroscope/docs/com/distriqt/extension/gyroscope/Gyroscope.html#SENSOR_DELAY_NORMAL).

2 replies

November 9, 2012

Can you be more elaborate on the issues you are facing, apart from the landscape/portrait mode issue?

Inspiring
November 9, 2012

We have built an augmented reality style game.

The user moves the phone 360 degrees to find objects in the 3d space (we're not using stage3d). This movement is controlled with the gyroscope.

Here's the test results on different devices -

On an iPhone/iTouch 4 it works well with iOS 4.3, 5 & 5.1 etc. but on iOS 6 there is no movement with the Gyroscope.

However, on an iPhone4S with iOS 6.0 it works well.

These are the settings -

<aspectRatio>landscape</aspectRatio>

<fullScreen>true</fullScreen>

<renderMode>gpu</renderMode>

<autoOrients>false</autoOrients>

Please let us know if you need to know any further details.

November 9, 2012

This is indeed strange. Can you please log a bug on http://bugbase.adobe.com, attaching sample resource files with minimal code which reproduces the bug?

Also, share the bug number on the forums.

Thanks.

Inspiring
November 9, 2012

We've installed the AIR 3.5 SDK and still this problem persists.

In the release notes for the AIR 3.5 SDK, we see this fixed issue -

If auto orients=false and aspect ratio=landscape, App launches in landscape mode but stage launches in portrait mode, on packaging with iOS 6 SDK. (3317345)

We assume this was the problem with AIR 3.4.

However it doesn't seem to be fixed.

Any help regarding this issue is appreciated.

Adobe Employee
November 9, 2012

Regarding the Orientaition issue, could you please confirm whether you are compiling the swf with correct version i.e 18.

Thanks,

Sakshi

Inspiring
November 9, 2012

We have set the compiler argument

-swf-version=18

We don't have any issues with orientation ... however, we suspect that the Gyroscope data is being read as if its Portrait mode even though the app is running in Landscape mode.