Is there a way to keep device awake in corona SDK

I am making an app in corona which records something and play it. Sometimes recording are long enough that while playing them device sleeps.

I want to know that is there any function that keeps my device awake while playing the complete recording.

Thanks in Advance

Hi @ansaf_130,

Have you tested this API?

http://docs.coronalabs.com/api/library/system/setIdleTimer.html

Regards,

Brent

thanks @Brent

Thats all what I was in need of :slight_smile:

Hi @ansaf_130,

Have you tested this API?

http://docs.coronalabs.com/api/library/system/setIdleTimer.html

Regards,

Brent

thanks @Brent

Thats all what I was in need of :slight_smile: