-
public interface IOtelPlatformProviderPlatform-agnostic provider interface for injecting platform-specific values. All Android/iOS specific values should be provided through this interface.
-
-
Method Summary
Modifier and Type Method Description abstract StringgetInstallId()Gets the installation ID for this device. abstract StringgetSdkBase()abstract StringgetSdkBaseVersion()abstract StringgetAppPackageId()abstract StringgetAppVersion()abstract StringgetDeviceManufacturer()abstract StringgetDeviceModel()abstract StringgetOsName()abstract StringgetOsVersion()abstract StringgetOsBuildId()abstract StringgetSdkWrapper()abstract StringgetSdkWrapperVersion()List<String>getEnabledFeatureFlags()abstract StringgetAppId()abstract StringgetOnesignalId()abstract StringgetPushSubscriptionId()abstract StringgetAppState()abstract LonggetProcessUptime()abstract StringgetCurrentThreadName()abstract StringgetCrashStoragePath()abstract LonggetMinFileAgeForReadMillis()abstract BooleangetIsRemoteLoggingEnabled()Whether remote logging (crash reporting, ANR detection, remote log shipping) is enabled. abstract StringgetRemoteLogLevel()The minimum log level to send remotely as a string (e.g., "ERROR", "WARN"). abstract BooleangetIsOtelExporterLoggingEnabled()Debug-only toggle for local exporter diagnostics. abstract StringgetAppIdForHeaders()abstract StringgetApiBaseUrl()Base URL for the OneSignal API (e.g. -
-
Method Detail
-
getInstallId
abstract String getInstallId()
Gets the installation ID for this device. This is an async operation as it may need to generate a new ID if one doesn't exist.
-
getSdkBase
abstract String getSdkBase()
-
getSdkBaseVersion
abstract String getSdkBaseVersion()
-
getAppPackageId
abstract String getAppPackageId()
-
getAppVersion
abstract String getAppVersion()
-
getDeviceManufacturer
abstract String getDeviceManufacturer()
-
getDeviceModel
abstract String getDeviceModel()
-
getOsVersion
abstract String getOsVersion()
-
getOsBuildId
abstract String getOsBuildId()
-
getSdkWrapper
abstract String getSdkWrapper()
-
getSdkWrapperVersion
abstract String getSdkWrapperVersion()
-
getEnabledFeatureFlags
List<String> getEnabledFeatureFlags()
-
getOnesignalId
abstract String getOnesignalId()
-
getPushSubscriptionId
abstract String getPushSubscriptionId()
-
getAppState
abstract String getAppState()
-
getProcessUptime
abstract Long getProcessUptime()
-
getCurrentThreadName
abstract String getCurrentThreadName()
-
getCrashStoragePath
abstract String getCrashStoragePath()
-
getMinFileAgeForReadMillis
abstract Long getMinFileAgeForReadMillis()
-
getIsRemoteLoggingEnabled
abstract Boolean getIsRemoteLoggingEnabled()
Whether remote logging (crash reporting, ANR detection, remote log shipping) is enabled. Derived from the presence of a valid log_level in logging_config:
"logging_config": {} → false (not on allowlist)
"logging_config": {"log_level": "ERROR"} → true (on allowlist) Defaults to false on first launch (before remote config is cached).
-
getRemoteLogLevel
abstract String getRemoteLogLevel()
The minimum log level to send remotely as a string (e.g., "ERROR", "WARN"). Null when logging_config is empty or not yet cached (disabled). Valid values: "NONE", "FATAL", "ERROR", "WARN", "INFO", "DEBUG", "VERBOSE"
-
getIsOtelExporterLoggingEnabled
abstract Boolean getIsOtelExporterLoggingEnabled()
Debug-only toggle for local exporter diagnostics. When true, Otel exporter request/response success/failure logs are emitted to logcat.
-
getAppIdForHeaders
abstract String getAppIdForHeaders()
-
getApiBaseUrl
abstract String getApiBaseUrl()
Base URL for the OneSignal API (e.g. "https://api.onesignal.com"). The Otel exporter appends "sdk/otel/v1/logs" to this. Sourced from the core module so all SDK traffic hits the same host.
-
-
-
-