Launch location-based help service on iOS on boot

Applications can register for significant location changes . (Recommended) Substantially modified location service offers a low-power way to retrieve location data and is highly recommended for applications that do not need high-precision location data. With this service, location updates are only generated when users' locations change significantly; Thus, it is ideal for social applications or applications that provide the user with non-critical, location-relevant information. If the application pauses when an update occurs, the system wakes it in the background to process the update. If an application starts this service and then exits, the system automatically starts the application when a new location becomes available . This service is available in iOS 4 and later, only on devices that contain cellular radio communications.

From http://developer.apple.com/library/ios/#DOCUMENTATION/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html

When you change the location, the application may restart. However, is it possible to start it automatically when the phone starts? The documentation is not entirely clear.

+4
source share
3 answers

The service starts when the user launches your application and exits if it is closed. The service will work if the application is running in the background.

Developers cannot integrate services into the OS for security reasons.

+3
source

No, you will not be able to launch the application automatically when you start the phone. In addition, if a user launches your application manually and puts it in the background, the system may end up killing it when it needs memory.

+1
source

"Including the voip value in the UIBackgroundModes key allows the system to know that it should allow the application to run in the background, if necessary, to manage its network sockets. An application with this key also restarts in the background immediately after the system boots so that VoIP services are always available."

check out iOS docs here

Although, if you are doing this for an illegal reason, I assume that your application will either not receive approval or will load quickly.

0
source

All Articles