I'm looking to write a program that will work along side with the components of the iPhone, however I run into the issue of when someone turns off their iPhone the program doesn't restart. You need to manually restart it.
How can I make it so when the iPhone turns on it auto executes this program? What can I include in my code so this happens?