Turn on idle screen

Is there a way to turn on an idle screen from within my app? I cant seem to find any way in the api

What do you mean by “turn on an idle screen”

Start it again so the content is shown. Im building an alarm clock, so in the hours when the user is asleep the screen will be turned off, but when the alarm rings i want to turn on the screen again, like the native alarm clock works in android. 

Is that possible?

Corona SDK apps don’t background.  But the way to implement this is using something called “Local Notifications”.  The OS will wake your app up at a prescribed time and when the user interacts with the notification, it should re-launch/foreground your app.

Im already using notifications to schedule the alarm. The thing I am wondering is if I in the notification listener could fire off some  code to turn the screen On, from idle screen to a screen turned on?

That would be a feature of the operating system. I don’t think there is any thing the app can do unless the device is jailbroken/rooted and you have access to native code (Enterprise).  Apple doesn’t allow access to those types of things for mortals.

Ok I understand, thanks

What do you mean by “turn on an idle screen”

Start it again so the content is shown. Im building an alarm clock, so in the hours when the user is asleep the screen will be turned off, but when the alarm rings i want to turn on the screen again, like the native alarm clock works in android. 

Is that possible?

Corona SDK apps don’t background.  But the way to implement this is using something called “Local Notifications”.  The OS will wake your app up at a prescribed time and when the user interacts with the notification, it should re-launch/foreground your app.

Im already using notifications to schedule the alarm. The thing I am wondering is if I in the notification listener could fire off some  code to turn the screen On, from idle screen to a screen turned on?

That would be a feature of the operating system. I don’t think there is any thing the app can do unless the device is jailbroken/rooted and you have access to native code (Enterprise).  Apple doesn’t allow access to those types of things for mortals.

Ok I understand, thanks