0

I have one task to developer an application in which user can press the "MINIMIZE" button from my application the application should become in background stare and it should not be terminated by my iOS because i am sending some data from my application to server in background mode also.

so my question is how to minimize my application from button of my app? and the application should not be close automatically from iOs. thanks in advance.

Hrushikesh Betai
  • 2,227
  • 5
  • 33
  • 63
  • 2
    You cannot control whether or when your application is terminated. Welcome to iOS. – Michael Petrotta Jan 05 '12 at 05:01
  • If your app is performing a background task, the OS won't kill it unless it has to. But like Michael Petrotta says, you don't have much say in the end. – keyboardP Jan 05 '12 at 05:04
  • @keyboardP thanks dude, but i am sending user location to server but after sometime my application is going to be crashed in background. did you have any idea about this problem? – Hrushikesh Betai Jan 05 '12 at 06:35

1 Answers1

1

It is not possible through code, you can ONLY EXIT from app through code. refer this Stack Overflow question.

Community
  • 1
  • 1
Prashant Rane
  • 436
  • 4
  • 11