Capture Background Sessions #
The Embrace SDK can be configured to enable the capturing of background sessions. To enable capturing background sessions, call the setBackgroundSessionMode
method with the EMBBackgroundSessionHybrid
enum value.
Embrace.sharedInstance().setBackgroundSessionMode(.hybrid)
[[Embrace sharedInstance] setBackgroundSessionMode: EMBBackgroundSessionHybrid];
To disable background session capture, either remove the setBackgroundSessionMode
method call or use the EMBBackgroundSessionDisabled
enum value (.disabled
for Swift). You can also disable the collection of background sessions on the settings page of the Embrace dashboard.
Capturing background sessions requires v5.5.1 or higher.
Enabling the collection of background session will increase the amount of sessions that are collected.