This article describes options that allow you to change some SDK behaviors. It contains all settings you can configure to change some SDK behaviors. The settings are divided into groups:
- General - This group contains options related to the general functioning of mobile SDK.
- Notifications - This group contains options related to push notifications.
- In-app messaging - This group contains options related to the in-app messages feature.
- Tracker - This group contains options related to tracking the customer activities in a mobile application.
- Injector - This group contains options related to displaying campaigns.
Pre-initialization settings
Some of the pre-initialization settings are optional. If you want to use them, they must be configured before Synerise SDK is initialized, before invoking the following methods:
- Synerise.Builder.build() (Android)
- Synerise.initialize(apiKey:) (iOS)
- Synerise.Initializer().init() (React Native). Pass the settings with
withSettings()before you callinit() - Synerise.initializer().init() (Flutter)
Pre-initialization settings:
- Set up App Group Identifier (iOS only)
- Set up Keychain Group Identifier (iOS only)
- Set up SSL pinning (Android and iOS)
- Maintaining customer session on different API keys
- Turn on/turn off notification encryption
In the iOS SDK, if you set any of these options except notification encryption after the SDK is initialized, the SDK logs a FATAL ERROR message.
The rest of the options can be changed dynamically anytime.
IMPORTANT: In the Flutter SDK, you can set settings before initialization, but you can only read them after the SDK is initialized. Reading a setting before initialization throws a PlatformException
NOTE: See advanced initialization example with all settings options for:
General
Enable/disable SDK
This parameter specifies if the SDK is enabled.
If the SDK is disabled, it means:
- the SDK does not send any events
- the SDK does not handle notifications
- the SDK does not show in-app messages
Available on: Android, iOS, React Native, Flutter.
| Method | Type | Default |
|---|---|---|
Synerise.settings.sdk.setSDKEnabled(value) |
boolean |
true |
To read the current value, use Synerise.settings.sdk.isSDKEnabled()
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.sdk.enabled |
Bool |
true |
| Parameter | Type | Default |
|---|---|---|
Synerise.Settings.sdk.enabled |
boolean |
true |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.sdk.enabled |
bool |
true |
Do not track
This parameter specifies if the Do Not Track mode is enabled. In this mode, the SDK stops sending tracking events and replaces the UUID with a random one, so no profile is created. Some features, such as authentication, are not available.
For more information, see Do Not Track.
Available on: Android, iOS, React Native, Flutter.
| Method | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.sdk.setDoNotTrack(value) |
boolean |
false | 6.3.0 |
To read the current value, use Synerise.settings.sdk.getDoNotTrack()
This method works only after the SDK is initialized. To set the value during initialization, use initialDoNotTrack(value) in Synerise.Builder
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.sdk.doNotTrack |
Bool |
false | 5.4.0 |
To set the value during initialization, use InitializationConfig.initialDoNotTrack
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.Settings.sdk.doNotTrack |
boolean |
false | 1.3.0 |
To set the value during initialization, use withInitialDoNotTrack(value) in Synerise.Initializer()
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.sdk.doNotTrack |
bool |
false | 2.3.0 |
To set the value during initialization, use setInitialDoNotTrack(value) in Synerise.initializer()
Minimum time interval to refresh token
This parameter sets a time interval (in seconds) counting backwards from the expiration time. Within this time, the authorization token will be automatically refreshed by the SDK.
Available on: Android, iOS, React Native, Flutter.
| Method | Type | Default | Minimum |
|---|---|---|---|
Synerise.settings.sdk.setMinTokenRefreshInterval(value) |
int (seconds) |
1800 | 1800 |
| Parameter | Type | Default | Minimum |
|---|---|---|---|
Synerise.settings.sdk.minTokenRefreshInterval |
TimeInterval |
1800 | 1800 |
| Parameter | Type | Default | Minimum |
|---|---|---|---|
Synerise.Settings.sdk.minTokenRefreshInterval |
number |
1800 | 1800 |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.sdk.minTokenRefreshInterval |
double |
1800 |
Maintaining customer session on different API keys
This parameter specifies if a session is destroyed after the Profile API (formerly Client) key changes.
IMPORTANT: This option must be configured when Synerise SDK is initialized.
Available on: Android, iOS, React Native, Flutter.
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.sdk.shouldDestroySessionOnApiKeyChange |
Boolean |
true |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.sdk.shouldDestroySessionOnApiKeyChange |
Bool |
true |
| Parameter | Type | Default |
|---|---|---|
Synerise.Settings.sdk.shouldDestroySessionOnApiKeyChange |
boolean |
true |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.sdk.shouldDestroySessionOnApiKeyChange |
bool |
true |
IMPORTANT: This option works only if you change the Profile (formerly Client) API key within one workspace.
To change the API key from a different workspace, use the following method:
- for Android Client.changeApiKey
- for iOS Synerise.changeApiKey
- for React Native Synerise.changeApiKey
- for Flutter Synerise.changeApiKey
Set up App Group Identifier
This parameter identifies the user default group applications and extensions belong to.
IMPORTANT: This option must be configured when Synerise SDK is initialized, before invoking the Synerise.initialize(apiKey:) method.
Available on: iOS, React Native (iOS), Flutter (iOS).
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.sdk.appGroupIdentifier |
String |
nil |
| Parameter | Type | Default |
|---|---|---|
Synerise.Settings.sdk.appGroupIdentifier |
string |
null |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.sdk.appGroupIdentifier |
String? |
null |
Synerise SDK requires this parameter to be configured for storing your non-sensitive data and sharing it between your app and extensions.
Your App Group must be registered on the Apple Developer portal. It is recommended to use reverse-domain name style and prefix it with group. by default. For example, your App Group can be group.com.synerise.sdk.sample.
When your App Group is registered, add it as a capability on the Apple Developer portal in App ID Configuration and in Xcode in the Signing&Capabilities tab.
Documentation is available at Apple Developer - App Groups.
Once configured, you need to set it up in the SDK:
Example
Synerise.settings.sdk.appGroupIdentifier = "group.com.synerise.sdk.sample"
SNRSynerise.settings.sdk.appGroupIdentifier = @"group.com.synerise.sdk.sample";
Synerise.Settings.sdk.appGroupIdentifier = "group.com.synerise.sdk.sample";
Synerise.settings.sdk.appGroupIdentifier = "group.com.synerise.sdk.sample";
Set up Keychain Group Identifier
This parameter identifies the keychain group used by applications, extensions and services that your app belongs to.
IMPORTANT: This option must be configured when Synerise SDK is initialized, before invoking the Synerise.initialize(apiKey:) method.
Available on: iOS, React Native (iOS), Flutter (iOS).
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.sdk.keychainGroupIdentifier |
String |
nil |
| Parameter | Type | Default |
|---|---|---|
Synerise.Settings.sdk.keychainGroupIdentifier |
string |
null |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.sdk.keychainGroupIdentifier |
String? |
null |
Synerise SDK requires that parameter to be configured for storing your data safely and sharing it between your app and extensions.
Your Keychain Group Identifier is made of:
- your Keychain Group
- your $(AppIdentifierPrefix), also called Team ID.
For example, if your Keychain Group is set to SharedItems and your Team ID is ABC1234DEF, the complete literal that you should set as Keychain Group Identifier is ABC1234DEF.SharedItems.
Documentation is available at Apple Developer - Sharing Access to Keychain Items Among a Collection of Apps.
Once configured, you need to set it up in the SDK:
Example
Synerise.settings.sdk.keychainGroupIdentifier = "ABC1234DEF.SharedItems"
SNRSynerise.settings.sdk.keychainGroupIdentifier = @"ABC1234DEF.SharedItems";
Synerise.Settings.sdk.keychainGroupIdentifier = "ABC1234DEF.SharedItems";
Synerise.settings.sdk.keychainGroupIdentifier = "ABC1234DEF.SharedItems";
Set up SSL pinning
This parameter sets an array of SSL pins. Each pin is a base64-encoded SHA-256 hash of a certificate's SPKI. The SDK uses these pins when you use a custom URL for the Synerise API.
IMPORTANT: This option must be configured when Synerise SDK is initialized.
Available on: Android, iOS.
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.sdk.addSSLPinningPin(String) |
String |
- |
Synerise.settings.sdk.getSSLPinningPin() |
List<String> |
empty list |
Prefix each pin with sha256/, for example sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.sdk.SSLPinningPinset |
[String]? |
nil |
Localize some strings occurring in the SDK
This parameter specifies the localization of some strings occurring in the SDK.
When this option isn't used, the SDK uses default strings.
Available on: iOS, React Native (iOS), Flutter (iOS).
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.sdk.localizable |
[SNRLocalizableStringKey: String]? |
[:] | 4.14.12 |
Use the SyneriseLocalizable.OK and SyneriseLocalizable.CANCEL keys.
Synerise.settings.sdk.localizable = [
SyneriseLocalizable.OK: "OK",
SyneriseLocalizable.CANCEL: "Cancel"
]
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.Settings.sdk.localizable |
object |
null | 0.19.0 |
Accepted keys are LocalizableStringKeyOK and LocalizableStringKeyCancel (constants exported by the SDK). Other keys are ignored.
Synerise.Settings.sdk.localizable = {
[LocalizableStringKeyOK]: "OK",
[LocalizableStringKeyCancel]: "Cancel"
};
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.sdk.localizable |
Map<String, String>? |
null | 1.0.0 |
The SDK ignores keys other than LocalizableKey.localizableStringKeyOk and LocalizableKey.localizableStringKeyCancel
Synerise.settings.sdk.localizable = {
LocalizableKey.localizableStringKeyOk: "OK",
LocalizableKey.localizableStringKeyCancel: "Cancel"
};
IMPORTANT: We recommend updating the property when you change the language in the Host App.
Notifications
Enable/disable notifications
This parameter specifies if handling notifications by the SDK is enabled.
Available on: Android, iOS, React Native, Flutter.
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.notifications.enabled |
Boolean |
true |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.notifications.enabled |
Bool |
true |
| Parameter | Type | Default |
|---|---|---|
Synerise.Settings.notifications.enabled |
boolean |
true |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.notifications.enabled |
bool |
true |
Turn on/turn off notification encryption
This parameter specifies if encryption for push notifications is enabled.
IMPORTANT: We recommend configuring this option when Synerise SDK is initialized.
Available on: Android, iOS, React Native, Flutter.
| Method | Type | Default |
|---|---|---|
Synerise.settings.notifications.setEncryption(value) |
Boolean |
false |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.notifications.encryption |
Bool |
false |
| Parameter | Type | Default |
|---|---|---|
Synerise.Settings.notifications.encryption |
boolean |
false |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.notifications.encryption |
bool |
false |
IMPORTANT: Encryption must be enabled in the workspace settings, in the Firebase integration section.
IMPORTANT: The application must be properly configured and implemented for notification encryption:
Enable/disable notification in-app alerts
This parameter determines whether the SDK displays an additional alert in the application right after a notification is delivered.
If you have your own notification implementation, or you do not want to display alerts with notification content, you should disable in-app notification alerts from the Synerise SDK.
Also, read here.
Available on: iOS, React Native (iOS), Flutter (iOS).
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.notifications.disableInAppAlerts |
Bool |
false |
| Parameter | Type | Default |
|---|---|---|
Synerise.Settings.notifications.disableInAppAlerts |
boolean |
false |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.notifications.disableInAppAlerts |
bool |
false |
In-app messaging
Check Global Control Groups when fetching definitions
This parameter specifies if global control groups should be checked immediately after in-app definitions are fetched.
Available on: Android, iOS, React Native, Flutter.
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.inAppMessaging.checkGlobalControlGroupsOnDefinitionsFetch |
Boolean |
false | 5.15.0 |
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.inAppMessaging.checkGlobalControlGroupsOnDefinitionsFetch |
Bool |
false | 4.15.0 |
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.Settings.inAppMessaging.checkGlobalControlGroupsOnDefinitionsFetch |
boolean |
false | 0.19.0 |
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.inAppMessaging.checkGlobalControlGroupsOnDefinitionsFetch |
bool |
false | 0.8.3 |
Maximum time interval between in-app definition updates
This parameter sets the maximum interval (in seconds) between automatic in-app message definition updates.
Available on: Android, iOS, React Native, Flutter.
| Method | Type | Default | Minimum | Min. SDK version |
|---|---|---|---|---|
Synerise.settings.inAppMessaging.setMaxDefinitionUpdateIntervalLimit(value) |
int (seconds) |
600 | 600 | 4.8.3 |
| Parameter | Type | Default | Minimum | Min. SDK version |
|---|---|---|---|---|
Synerise.settings.inAppMessaging.maxDefinitionUpdateIntervalLimit |
TimeInterval |
600.0 | 600.0 | 4.9.0 |
| Parameter | Type | Default | Minimum | Min. SDK version |
|---|---|---|---|---|
Synerise.Settings.inAppMessaging.maxDefinitionUpdateIntervalLimit |
number |
600.0 | 600.0 | 0.12.0 |
| Parameter | Type | Default | Minimum | Min. SDK version |
|---|---|---|---|---|
Synerise.settings.inAppMessaging.maxDefinitionUpdateIntervalLimit |
double |
600.0 | 600.0 | 0.4.0 |
Content base URL for in-app message
This parameter defines the base URL for loading external resources (such as JavaScript files, CSS stylesheets, images, or fonts) within your in-app content. This is particularly useful when resources are hosted on your own server and you have set up CORS (Cross-Origin Resource Sharing) policies.
NOTE: Thanks to the base URL, the app will know where to look for all external resources that are loaded dynamically. This helps avoid specifying full URLs each time a resource is requested and ensures that resources are consistently loaded from the correct location.
Available on: Android, iOS, React Native, Flutter.
| Method | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.inAppMessaging.setContentBaseUrl(value) |
String |
"" (empty string) | 5.21.0 |
If the value is not a valid URL, the SDK logs an error and ignores it.
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.inAppMessaging.contentBaseUrl |
String |
nil | 4.21.0 |
If the value is not a valid URL, the SDK ignores it.
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.Settings.inAppMessaging.contentBaseUrl |
string |
null | 0.24.0 |
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.inAppMessaging.contentBaseUrl |
String |
null | 1.4.0 |
Example
You should set contentBaseUrl to the root URL of the server hosting your resources. This is especially important when hosting assets such as fonts, images, or scripts from a specific domain or server.
Synerise.settings.inAppMessaging.contentBaseUrl = "https://www.synerise.com"
SNRSynerise.settings.inAppMessaging.contentBaseUrl = @"https://www.synerise.com";
Synerise.Settings.inAppMessaging.contentBaseUrl = "https://www.synerise.com"
Synerise.settings.inAppMessaging.contentBaseUrl = "https://www.synerise.com"
Maximum time for in-app message rendering
This parameter sets a timeout for in-app message rendering. The unit depends on the SDK: milliseconds in the Android SDK, seconds in the iOS and React Native SDKs. If the message HTML does not load within this time, the message is not shown and an inApp.renderFail event is sent.
Available on: Android, iOS, React Native, Flutter.
| Parameter | Type | Default | Minimum | Min. SDK version |
|---|---|---|---|---|
Synerise.settings.inAppMessaging.renderingTimeout |
int (milliseconds) |
2000 | - | 4.7.0 |
| Parameter | Type | Default | Minimum | Min. SDK version |
|---|---|---|---|---|
Synerise.settings.inAppMessaging.renderingTimeout |
TimeInterval |
5.0 | 1.0 | 4.6.0 |
| Parameter | Type | Default | Minimum | Min. SDK version |
|---|---|---|---|---|
Synerise.Settings.inAppMessaging.renderingTimeout |
number (seconds) |
2.0 (Android) 5.0 (iOS) |
- (Android) 1.0 (iOS) |
0.12.0 |
| Parameter | Type | Default | Minimum | Min. SDK version |
|---|---|---|---|---|
Synerise.settings.inAppMessaging.renderingTimeout |
double |
2000 (Android, milliseconds) 5.0 (iOS, seconds) |
- (Android) 1.0 (iOS) |
0.4.0 |
Enable/disable sending inApp.capping event
This parameter specifies if the SDK should send the inApp.capping event. On Android, it applies to both overlay and inline in-app messages.
Available on: Android, iOS, React Native, Flutter.
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.inAppMessaging.shouldSendInAppCappingEvent |
Boolean |
true | 5.10.1 |
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.inAppMessaging.shouldSendInAppCappingEvent |
Bool |
true | 4.14.7 |
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.Settings.inAppMessaging.shouldSendInAppCappingEvent |
boolean |
true | 0.16.0 |
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.inAppMessaging.shouldSendInAppCappingEvent |
bool |
true | 0.7.2 |
Tracker
Enable/disable declarative tracking
This parameter specifies if the declarative tracking feature is enabled.
Available on: Android, iOS.
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.tracker.tracking.enabled |
Boolean |
true |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.tracker.tracking.enabled |
Bool |
true |
Enable/disable auto-tracking
WARNING: Autotracking is NOT available when building apps with Jetpack Compose (Android) and SwiftUI (iOS).
This parameter specifies if the auto-tracking feature is enabled.
Available on: Android, iOS.
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.tracker.autoTracking.enabled |
Boolean |
true |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.tracker.autoTracking.enabled |
Bool |
true |
Require/do not require backend time synchronization to send events
This parameter specifies if events are sent when the server time synchronization has failed.
Available on: Android, iOS, React Native, Flutter.
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.tracker.isBackendTimeSyncRequired |
Boolean |
true |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.tracker.isBackendTimeSyncRequired |
Bool |
true |
| Parameter | Type | Default |
|---|---|---|
Synerise.Settings.tracker.isBackendTimeSyncRequired |
boolean |
true |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.tracker.isBackendTimeSyncRequired |
bool |
true |
Minimum number of events in queue
This parameter sets the minimum number of events in queue required to send the queue.
Available on: Android, iOS, React Native, Flutter.
| Method | Type | Default | Minimum | Maximum |
|---|---|---|---|---|
Synerise.settings.tracker.setMinimumBatchSize(value) |
int |
10 | 1 | 100 |
| Parameter | Type | Default | Minimum | Maximum |
|---|---|---|---|---|
Synerise.settings.tracker.minBatchSize |
Int |
10 | 1 | 100 |
| Parameter | Type | Default | Minimum | Maximum |
|---|---|---|---|---|
Synerise.Settings.tracker.minBatchSize |
number |
10 | 1 | 100 |
| Parameter | Type | Default | Minimum | Maximum |
|---|---|---|---|---|
Synerise.settings.tracker.minBatchSize |
int |
10 | 1 | 100 |
NOTE: If the timer runs out, events are sent even if the queue is smaller than defined in minBatchSize.
Maximum number of events in queue
This parameter sets the maximum number of events which may be sent in a single batch.
Available on: Android, iOS, React Native, Flutter.
| Method | Type | Default | Minimum | Maximum |
|---|---|---|---|---|
Synerise.settings.tracker.setMaximumBatchSize(value) |
int |
100 | 1 | 100 |
| Parameter | Type | Default | Minimum | Maximum |
|---|---|---|---|---|
Synerise.settings.tracker.maxBatchSize |
Int |
100 | 1 | 100 |
| Parameter | Type | Default | Minimum | Maximum |
|---|---|---|---|---|
Synerise.Settings.tracker.maxBatchSize |
number |
100 | 1 | 100 |
| Parameter | Type | Default | Minimum | Maximum |
|---|---|---|---|---|
Synerise.settings.tracker.maxBatchSize |
int |
100 | 1 | 100 |
Timeout to send events automatically
This parameter sets the time (in milliseconds for Android, in seconds for other SDKs) required before an attempt is made to send the queue.
Available on: Android, iOS, React Native, Flutter.
| Method | Type | Default | Minimum | Maximum |
|---|---|---|---|---|
Synerise.settings.tracker.setAutoFlushTimeout(value) |
int (milliseconds) |
5000 | 50 | - |
| Parameter | Type | Default | Minimum | Maximum |
|---|---|---|---|---|
Synerise.settings.tracker.autoFlushTimeout |
TimeInterval |
5.0 | 0.5 | - |
| Parameter | Type | Default | Minimum | Maximum |
|---|---|---|---|---|
Synerise.Settings.tracker.autoFlushTimeout |
number |
5.0 | 0.5 | - |
| Parameter | Type | Default | Minimum | Maximum |
|---|---|---|---|---|
Synerise.settings.tracker.autoFlushTimeout |
double |
5.0 | 0.5 | - |
NOTE: If the minimum queue size is met, events are sent even if the timer has not run out.
Events triggering flush mechanism
This parameter sets an array of event 'action' values which trigger the flush mechanism.
The list can be modified or cleared - including removing the default values.
Available on: Android (5.17.0 or newer), iOS (4.17.0 or newer), React Native (0.20.0 or newer), Flutter (1.1.0 or newer).
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.tracker.eventsTriggeringFlush |
List<String> |
["push.click", "push.view", "push.notView", "push.button.click", "push.dismiss"] | 5.17.0 |
IMPORTANT: In iOS, push.view events are handled by the Notification Service Extension and always sent immediately, regardless of this setting.
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.tracker.eventsTriggeringFlush |
[String] |
["push.view", "push.openInApp", "push.click", "push.button.click", "push.dismiss"] | 4.17.0 |
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.Settings.tracker.eventsTriggeringFlush |
Array<string> |
The default of the native SDK (see the Android and iOS tabs) | 0.20.0 |
| Parameter | Type | Default | Min. SDK version |
|---|---|---|---|
Synerise.settings.tracker.eventsTriggeringFlush |
List<String> |
The default of the native SDK (see the Android and iOS tabs) | 1.1.0 |
Automatic location event sending
This parameter specifies if location events are sent automatically.
Available on: iOS.
NOTE: On Android, use OnLocationUpdateListener instead.
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.tracker.locationAutomatic |
Bool |
false |
Auto-tracking mode
This parameter defines the auto-tracking mode.
Available on: Android, iOS.
PLAIN- listeners are set to track screen visits only.FINE- listeners are attached to nearly everything that is clickable in your app, including screen visits.
The TrackMode enum is in the com.synerise.sdk.core.types.enums package.
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.tracker.autoTracking.trackMode |
TrackMode | FINE |
.disabled- listeners are disabled (default)..plain- listeners track screen visits only (VisitedScreen events)..fine- listeners track touches and clicks in addition to screen visits.
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.tracker.autoTracking.mode |
TrackerAutoTrackMode |
.disabled |
Classes excluded from auto-tracking
This parameter excludes classes from auto-tracking.
Available on: Android, iOS.
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.tracker.autoTracking.excludedClasses |
List<Object> |
[] |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.tracker.autoTracking.excludedClasses |
[AnyClass] |
[] |
View Tags excluded from auto-tracking
This parameter excludes view tags from auto-tracking.
Available on: iOS.
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.tracker.autoTracking.excludedViewTags |
[Int] |
[] |
Injector
Enable/disable automatic starting of mobile campaigns (deprecated)
This parameter specifies if walkthrough is processed automatically or not. - DEPRECATED
Available on: Android, iOS, React Native, Flutter.
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.injector.automatic |
Boolean |
false |
This field has no effect since SDK version 6.0.0, which removed walkthrough support. It is kept only for backward compatibility.
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.injector.automatic |
Bool |
false |
| Parameter | Type | Default |
|---|---|---|
Synerise.Settings.injector.automatic |
boolean |
false |
| Parameter | Type | Default |
|---|---|---|
Synerise.settings.injector.automatic |
bool |
false |