Support for some types of background execution must be declared in advance by the app that uses them. An app declares support for a service using its
Info.plistfile. Add theUIBackgroundModeskey to yourInfo.plistfile and set its value to an array containing one or more of the following strings:
location—The app keeps users informed of their location, even while it is running in the background.