Launch App as a Service on iOS / Cydia

I am currently trying to create a small application that needs to run in the background. It should start from the system or springboard and run until the device shuts down. I searched for tutorials but didn't find anything useful. It would be great if someone could help me.

Regards

EDIT . I'm sure this is not possible in an app designed for the AppStore, but I'm looking for an option that works with jailbreak devices.

+3


source to share


4 answers


Wrong answer by ColinE . SuperDev is correct . You can certainly create services on iOS just like you can on OS X.

As another link, the best tutorial I have found on the subject is Chris Alvares' blog post on creating an iOS launcher daemon . (Launch Daemon is the correct iOS terminology for what you are describing)



You can find more useful information in the Apple Docs for running daemons or looking for OS X information, not just for iOS where jailbreak is required (and therefore less widely used).

Cydia has many applications that start a daemon or contain a launcher daemon (possibly besides the UI app).

+4


source


Have you read about runnable daemons? You can use one of them. An example is untrackerd rpetrich , the awesome cydia developer.



+2


source


This is not possible, you cannot create "service" type applications:

iOS: maintain the app as a service

This is by design. Apple restricts what your apps can do to provide a good user experience. If everyone could create background services, it would soon slow down user phones - like Windows PCs!

+1


source


Have you tried reading about Mobile Substrate

? This allows you to create trampoline extensions. This way you can run the application in the background.

0


source







All Articles