Ios demon background

I have an iOS app that does network testing for administrators and webmasters. Users tell me that they want the app to stay alive in the background and generate notifications when a malfunction occurs. However, Apple's documentation indicates that this does not apply to one of the permitted types of background activity.

Ideally, my application wakes up every few minutes, whether in the foreground or in the background, and runs a series of quick tests, usually using the network stack (not much data). The error will result in a custom notification.

When I read the Apple iOS documentation, this is not allowed. Is it correct?

+4
source share
2 answers

Let me break it down into three questions:

a) Is it technically possible to wake up in a few minutes?

Yes. Maybe. There are several known ways to do this: - Using audio - Using a location manager - Using a VOIP callback (this will give you 10 minutes to wake up)

b) Can you submit an application to the AppStore that is abusing background modes?

The answer is no

You can legally use a background task, but it just gives you 10 minutes (which will not fly for you).

c) Can you abuse the background modes and distribute your application in your enterprise?

The answer is yes. You can write your application, sign it with an enterprise certificate and use it in your enterprise.

However, this means that you cannot sell it.

+2
source

Yes, that sounds right. Only a few types of applications can work in the background: here for UIBackgroundModes keys.

Of course, you can play with BackgroundTask, but it can only work for ten minutes.

0
source

All Articles