Defaults (when no options are passed)
Setting | Default | Description |
Polling Interval | 5 minutes | How often the SDK checks PageSense for updated settings. |
Log Level | INFO | Captures INFO, WARN, and ERROR messages.
|
These defaults work for most standard iOS integrations.
Polling Interval
Controls how often the SDK checks the PageSense server for configuration updates.
Property
swift
let sdkOptions = PageSenseSDKOptions()
sdkOptions.pollingInterval = intervalInMinutes
Parameter
Parameter | Type | Description |
intervalInMinutes | Int | Polling frequency in minutes. Minimum value is 5 minutes.
|
Example
- swift
- let sdkOptions = PageSenseSDKOptions()
- sdkOptions.pollingInterval = 10 // Poll every 10 minutes
Things to watch:
Under 5 minutes — not allowed; automatically set to 5 minutes. Frequent polling increases network usage and battery drain.
Over 15 minutes — configuration changes take longer to reach the app. Users may see outdated experiment behaviour.
5–10 minutes works well for most production apps.
Log Level
Controls how much the SDK logs. Set a higher verbosity during development; dial it back for production.
Property
- swift
- let sdkOptions = PageSenseSDKOptions()
- sdkOptions.logLevel = .DEBUG
Supported levels
TRACE · DEBUG · INFO · WARNING · ERROR · FATAL
Example
- swift
- let sdkOptions = PageSenseSDKOptions()
- sdkOptions.logLevel = .DEBUG
DEBUG captures everything from DEBUG upward — useful during integration, validation, and QA. In production, drop it to .info or .error to avoid excessive output.
We’ve
designed this documentation to guide you every step of the way. If you
need further assistance or have any questions, don’t hesitate to contact
us at
support@zohopagesense.com - we’re always here to help!