Instance Property

sessionSendsLaunchEvents

A Boolean value that indicates whether the app should be resumed or launched in the background when transfers finish.

Declaration

@property BOOL sessionSendsLaunchEvents;

Discussion

For configuration objects created using the backgroundSessionConfigurationWithIdentifier: method, you can use this property to control the launching behavior for an iOS app. This property is ignored for configuration objects created using other methods.

The default value of this property is YES. When the value of this property is YES, the system automatically wakes up or launches the iOS app in the background when the session’s tasks finish or require authentication. At that time, the system calls the app delegate’s application:handleEventsForBackgroundURLSession:completionHandler: method, providing it with the identifier of the session that needs attention. If your app had to be relaunched, you can use that identifier to create a new configuration and session object capable of servicing the tasks.

See Also

Supporting Background Transfers

discretionary

A Boolean value that determines whether background tasks can be scheduled at the discretion of the system for optimal performance.

shouldUseExtendedBackgroundIdleMode

A Boolean value that indicates whether TCP connections should be kept open when the app moves to the background.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software