Configuration File

Configuration File #

Embrace-Info.plist #

Embrace is configured via an Embrace-Info.plist file placed at the root of the IPA, alongside the main application binary. An example of this file is included below as a reference:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

As you can see there are many properties available. Even so most apps that use Embrace do not include this file at the start. The common setup options are all available via API. You will only require this file if you intend to use one of our more advanced configuration options.

CRASH_REPORT_ENABLED boolean, optional #

Controls whether Embrace’s internal kscrash-based signal handler is installed or not. If disabled, Embrace will still attempt to mirror Firebase/Crashlytics crash reports but will not collect original reports.

If omitted, Embrace attempts to guess the right configuration by looking at the runtime classes.


Controls whether the Embrace startup moment will take a screenshot on completion or not. The default is on.

CAPTURE_COORDINATES boolean, optional #

Controls Embrace’s capture of tap coordinates within the app. When disabled, Embrace still captures taps but not the exact coordinates of the tap. The default is on.


If enabled, Embrace will swizzle and capture requests made via the background task downloading API. The default if off.


If enabled, Embrace will capture detailed performance statistics about network requests. The default is on.


Controls Embrace’s automatic view capture service. When enabled Embrace will automatically capture all displayed view controllers. This can help give you useful timeline data for your sessions. Some apps have a single-view UI, such has media or gaming applications. In those cases it makes sense to disable this feature and record the data manually instead. Default is on.

ENABLE_OS_LOG boolean, optional #

Enables Embrace’s OS_LOG tracking features. You can read more about those here: Augment Sessions using OS Log This feature is off by default.

ENABLE_WK_AUTO_RELOAD boolean, optional #

Embrace can perform some automatic webkit management for you. This is off by default as not all apps can safely use it. You can read more about this feature here: Web Thread Monitoring

DISABLED_URL_PATTERNS array[string], optional #

Use this field to specify an array of regex strings that prevent network requests with matching URLs from being captured. Whenever a URL is captured by Embrace, we check it against all the regexes in this array. If any match, we will not record that request in the session. Use this to filter noisy URLs from your sessions or protect PII from being uploaded to Embrace’s servers.

URLSESSION_CAPTURE_FILTERS array[string], optional #

This field can be used to make Embrace ignore certain URLSessions entirely. Classes who’s names match the regex strings in this array are not swizzled.


When set, the SDK will attempt to automatically end the startup moment when the application settles. This method will never be as accurate as placing endMoment yourself in your code.


Disables the capture of query parameters for webview URLs in the session. This can help if your query parameters contain private information that should not be uploaded to Embrace. This property is off by default.

WEBVIEW_ENABLE boolean, optional #

Enables or disables the WKWebview capture feature entirely. When disabled no WKWebview’s will be swizzled or recorded in your session data. Default is on.

NETWORK dictionary, optional #

The NETWORK dictionary can be added to the plist to allow more fine grained control of each URL used by the application.


Sets a default limit for how many instances of any given domain to capture in a single session. The value can then be overridden on a domain-by-domain basis below.

NETWORK:DOMAINS array[string], optional #

This array contains regex strings that match network domains we might capture. For each domain a corresponding limit key must be added below:

NETWORK:DEFAULT_CAPTURE_LIMIT array[int], optional #

For each domain above, a limit is added to this array. The domains and limits are matched by their index in the array. The limit controls how many times we will capture this domain in a single session.


When present, the value in this field is used as a public RSA key to encrypt any captured network data to protect PII. You can read more about this feature here: Network Body Capture


Enables or disables the capture of URLConnection requests entirely within the SDK. When disabled no URLConnection objects are swizzled or recorded. Default is enabled.

MAX_SESSION_SECONDS boolean, optional #

Controls the automatic ending of sessions after a certain time has passed. This setting is normally used in point-of-sale applications to ensure that data is uploaded periodically despite the device being always in use. Please consult with your support representative before using this setting as it can affect the data representation in your dashboards.

TRACE_ID_HEADER_NAME string, optional #

Embrace adds a header to all network requests to allow us to track that request and match it with the response. For certain server configurations it is necessary to customize that header: this can be done using this plist setting.