ilhnctn
ilhnctn

Reputation: 2210

Run app for a long time in background

I have googled an serached a lot here about background runnin aps but have no idea. My app sends to my server synchronous(mean, scheduled) GETs and receives a response. The response is a dictionary of arrays. I want my app to run all the time and send that GET, but Apple restrics this for just Audi, GPS-location, Vo-IP.. Some of the comments say "use an empty CGLocationManager loop or play an empty voice" but i have no idea how to do. Can anyone please help?

EDIT: The app will run on just my own devices, so it isn't problem if Apple doesn't let me sell it

Upvotes: 2

Views: 692

Answers (1)

Abizern
Abizern

Reputation: 150615

You could register for Audio services background mode and play a silent music track on repeat. That will keep your app alive in the background.

Upvotes: 2

Related Questions