I'm trying to run code that keeps the screen always on, it works perfectly when I'm inside the APP, but if I minimize or close it, it will not work.
NOTE: I am using UIKit.framework
code that keeps the screen lit:
[[UIApplication sharedApplication] setIdleTimerDisabled: YES];
In what way could I stay active with it even by closing or minimizing the app?
I found this project on the internet:
It is a radio APP, when I play the radio and I minimize the APP, it continues playing. I want something like that, but instead of a Streaming radio, I want to run the code shown above.