0

I'm writing an app that sometimes needs to run in background ( something like a navigator, if navigation is active it should go on while if it's not it should be suspended ); how can I force force the application state after user clicks home ? ( suspended or executing in background )

atrebbi
  • 553
  • 3
  • 20

1 Answers1

0

You can try this:

exit(0);

At the application delegate state, either the background one, the foreground or whichever is most suitable for your case.

MCKapur
  • 9,127
  • 9
  • 58
  • 101