How do I run a code with the application closed or minimized?

0

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:

link

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.

    
asked by anonymous 05.02.2016 / 19:52

1 answer

1

There is no app running in background in iOS beyond some exceptions (music, gps, bluetooth, etc).

See the official documentation for more information: iOS - Background Execution

    
12.02.2016 / 19:19