Search code examples
iphonenotificationsjailbreakbackground-service

iPhone Background Services Development


I am developing an iphone application and I think that it's business logic requires a service to be always running in background.

The service needed is to get the acceleration of the device and notify or perform a certain action when that acceleration becomes a certain value.

Is that allowable in the Apple policies, or is there any idea about a solution?

What cydia development possibilities to help me ?


Solution

  • Dbramhall left out one important thing:

    You can't guarantee that your app won't be killed, the OS can kill apps that are in the background at will if it requires more memory.

    So if at all possible i wouldn't rely on making sure it can run its process in the background and before you ask "How can i stop this?". Well you shouldn't I've never tried it myself because i don't know the effects it has on the OS.

    Also if you stop it from being killed in the Background, if it is going to be on the app store then it won't pass evaluation process, because it breaks the OS