CrittercismConfig

This object is used to specify various configuration options to Apteligent. Once this object is setup, you can pass it to Crittercism.initialize. After Apteligent is initialized, changes to this object will have no affect.

Creating a Config

+ defaultConfig
Creates a new CrittercismConfig object with the default values for the above properties. You can modify the config values and pass this object into [Crittercism enableWithAppID:andConfig]
+ (CrittercismConfig *)defaultConfig
// Swift 2.X
class func defaultConfig -> CrittercismConfig

// Swift 3.x
class func default() -> CrittercismConfig
Returns CrittercismConfig with default values.

Service Monitoring Configuration

enableServiceMonitoring Property

Determines whether Apteligent service monitoring is enabled at all. If this flag is set to NO, then no instrumentation will be installed and the thread that sends service monitoring data will be disabled

Default value: YES (enabled)

@property (nonatomic, assign) BOOL enableServiceMonitoring;
// Swift 2.X and 3.x
var enableServiceMonitoring: Bool
monitorNSURLConnection Property

Determines whether Service Monitoring should capture network performance information for network calls made through NSURLConnection.

Default value: YES

@property (nonatomic, assign) BOOL monitorNSURLConnection;
// Swift 2.X and 3.x
var monitorNSURLConnection: Bool
monitorNSURLSession Property

Determines whether Service Monitoring should capture network performance information for network calls made through NSURLSession.

Default value: YES

@property (nonatomic, assign) BOOL monitorNSURLSession;
// Swift 2.X and 3.x
var monitorNSURLSession: Bool
urlFilters Property
An array of CRFilter objects. These filters are used to make it so certain network performance information is not reported to Apteligent, for example URLs that may contain sensitive information. These filters can also be used to prevent URL query parameters from being stripped out (by default all query parameters are removed before being sent to Apteligent).
@property (nonatomic, strong) NSArray<CRFilter *> *urlFilters;
// Swift 2.X and 3.x
var urlFilters: Array<CRFilter>

Delay App Load Configuration

delaySendingAppLoad Property

Determines whether Apteligent should automatically send app load request or the app will decide when app load request should be sent by calling sendAppLoadData.

By default, Apteligent immediately reports an app load when Apteligent is initialized. The delay app load feature is most often used to delay counting an app load until after a user has passed a login screen.

Default value: NO (Apteligent will automatically send app load request)

@property (nonatomic, assign) BOOL delaySendingAppLoad;
// Swift 2.X and 3.x
var delaySendingAppLoad: Bool

Monitoring Web Views

Apteligent has the capability to monitor network traffic generated by web views and JavaScript errors generated by both UIWebViews and WKWebViews.

Note

Monitoring Web Views must be enabled in Hybrid Apps in order for Apteligent API calls in the JavaScript code layer to communicate with the native code layer.

monitorUIWebView Property

Determine whether Service Monitoring should capture network performance information for network calls made through a UIWebView. Currently only page loads and page transitions are captured. Calls made via javascript are currently not captured.

The default value is “disabled” because use of the UIWebView class has the side effect of calling [UIWebView initialize], both of which create new threads to manage webviews. Since Apteligent cannot prevent these side effects from happening and many apps do not use webviews, service monitoring for webviews must be explicitly enabled.

UIWebView monitoring is disabled on tvOS.

Default value: NO

@property (nonatomic, assign) BOOL monitorUIWebView;
// Swift 2.X and 3.x
var monitorUIWebView: Bool
monitorWKWebView Property

Determine whether Service Monitoring should capture network performance information for network calls made through a WKWebView. Currently only page loads and page transitions are captured. Calls made via javascript are currently not captured.

The default value is “disabled” because use of the WKWebView class has the side effect of calling [WKWebView initialize], both of which create new threads to manage webviews. Since Apteligent cannot prevent these side effects from happening and many apps do not use webviews, service monitoring for webviews must be explicitly enabled.

WKWebView monitoring is disabled on tvOS.

Default value: NO

@property (nonatomic, assign) BOOL monitorWKWebView;
// Swift 2.X and 3.x
var monitorWKWebView: Bool

Send Data On Wifi Only

allowsCellularAccess Property

Determines whether the client will send data to Apteligent while on a cellular network.

Default value: YES

@property(nonatomic) BOOL allowsCellularAccess;
// Swift 2.X and 3.x
var allowsCellularAccess: Bool

Deprecated Methods

delegate Property

This method has been deprecated. Please listen to CrittercismDidCrashOnLastLoadNotification

This object provides a callback that Apteligent will use to notify an app that the app crashed on the last load.

@property (nonatomic, strong, nullable) id<CrittercismDelegate> delegate;
// Swift 2.X
var delegate: CrittercismDelegate?