Skip to main content
Participant
December 31, 2011
Question

AIR 3.0 for iOS. My app doesn't go to sleep/iddle mode. Please help

  • December 31, 2011
  • 2 replies
  • 797 views

Hello everyone

I have created application in Flash Professional CS5.5 for iOS(iPad) and using AIR3.0, and currently I am at stage of finish and submit to Apple app store.

I noticed that my application is not going to sleep/iddle mode when I run it, then I added:

NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.NORMAL;

but it doesn't work and  it is still not going to sleep mode even I set Settings > Auto-Lock > 2 Minutes from iPad.

I have created another testing application with SystemIdleMode.NORMAL and it is working Ok and device is going to sleep/iddle mode.

Please help me what to do or advice what prevents system to go iddle mode. Thanks

This topic has been closed for replies.

2 replies

Colin Holgate
Inspiring
December 31, 2011

My guess would be that you have the same line somewhere else, because if you don't have a line to keep the system awake, then it should sleep.

cr204Author
Participant
December 31, 2011

No, I inluded

import flash.desktop.NativeApplication;

import flash.desktop.SystemIdleMode;

and I added

NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.NORMAL; 

only after I've seen it is not going to iddle mode.