I
I
Ivan Gaidamakin2016-06-03 09:37:43
Objective-C
Ivan Gaidamakin, 2016-06-03 09:37:43

How can I keep an iOS app in the background so that it doesn't pause?

Good afternoon!
I am developing a taxi application, where at one stage it is required to keep the socket.io connection and prevent iOS from killing or suspending the application.
Actually what I tried:
- background fetch, the minus of this is that the application is still killed after 5-10 minutes of its background'a
- location updates + setAllowBackgroundUpdates:YES - works as it should, but very cruelly eats up the battery.
Advise options, perhaps someone faced a similar problem.
I'll try VOIP now, but maybe I'll get Reject from Apple.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
ManWithBear, 2016-06-03
@MeGaPk

- location updates + setAllowBackgroundUpdates:YES - works as it should, but eats up battery very badly.

Have you tried playing with the location settings? Less accuracy means less battery.
In addition, you can set up notifications about position changes by a certain amount.
For using things that your application does not use, you will get a reject for sure.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question