BubblOptions
struct · Swiftdata class · Kotlintype · TypeScriptclass · DartHow Bubbl.start sets Bubbl up. The base URL is the only option you must set.
You pass BubblOptions to start (or startWithCredential on Flutter and React Native). Every option except baseUrl has a default. Starting again with the same key and the same options changes nothing.
https://api.sandbox.staging.bubbl.tech and the Production base URL is https://api.staging.bubbl.tech.Options#
The base URL is the host root, such as https://api.sandbox.bubbl.tech. Don't add a path: the SDK adds it. It must be https://. Plain http:// is allowed only for local development, to localhost, 127.0.0.1, 10.0.2.2 or a *.test host. The key and the base URL must be from the same workspace, Sandbox or Production: see Sandbox and Production.
data class BubblOptions @JvmOverloads constructor(baseUrl, requireConsent, logLevel, segments), so Java can pass only the base URL: new BubblOptions("https://…").
start throw IllegalArgumentException.false. When true, Bubbl does nothing (no network, no location, no notifications) until Bubbl.setConsent(true).LogLevel.WARNING. How much Bubbl writes to Logcat, under the tag BubblSDK.null. The device's segments, as Bubbl.setSegments would set them. null leaves them as they are.public struct BubblOptions: Sendable, Equatable, made with init(baseUrl: String, requireConsent: Bool = false, logLevel: LogLevel = .warning, segments: [String]? = nil). Its properties are vars.
start does nothing.false. When true, Bubbl does nothing (no network, no location, no notifications) until Bubbl.setConsent(true)..warning. How much Bubbl writes to the unified log, under the subsystem tech.bubbl.sdk.nil. The device's segments, as Bubbl.setSegments would set them. nil leaves them as they are.BubblOptions.LogLevel is a String enum (Sendable, Equatable, CaseIterable, Codable):
http:// base URL unless your app's Info.plist sets NSAppTransportSecurity › NSAllowsLocalNetworking. Set it in development builds only.const BubblOptions({required String baseUrl, bool requireConsent = false, BubblLogLevel logLevel = BubblLogLevel.warning, List<String>? segments}).
false. When true, Bubbl does nothing (no network, no location, no notifications) until Bubbl.setConsent(true).BubblLogLevel.warning. How much Bubbl logs natively: Logcat tag BubblSDK, or the iOS unified log's subsystem tech.bubbl.sdk. Not the Dart console.null. The device's segments, as Bubbl.setSegments would set them.BubblOptions also has Map<String, Object?> toJson(), the options as they cross to the native SDK. The log levels are a top-level enum:
type BubblOptions, a plain object.
false. When true, nothing runs (no network, location or notifications) until Bubbl.setConsent(true).'warning'. How much Bubbl logs natively: Logcat tag BubblSDK, or the iOS unified log's subsystem tech.bubbl.sdk.Bubbl.setSegments would set them.'warning' (errors and warnings) is the default.