I have set in the Info.plist
, the "app require background modes"
, the "app registers for location updates"
.
I put the app to be in the background, and I do get the location delegates for a while, but after 25 minutes it stopped getting the locations.
How do I know that? Each call of the delegate, it sends the data to the server (parse
) .
I am also wondering if the problem arises because the location is turned off in the background, or because I can't send data to the server at background.
Also do I have to turn on audio to keep it alive?
According to Apple, I can listen in the background with:
- apps that play audible content to the user while in the background, such as a music player app
- apps that record audio content while in the background
- apps that keep users informed of their location at all times, such as a navigation app
- apps that support Voice over Internet Protocol (VoIP)
- apps that need to download and process new content regularly
- apps that receive regular updates from external accessories
Do I have to turn on an audio? Our app needs to get data location constantly from business.
This issue is amazing. There are dozens of opinions about what you can do and what you can't do. There is no one place that tells you how you can sample background locations, and if Apple allows this.