InitializationStatus
MarketingCloudConfig
MarketingCloudSdk
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
com.salesforce.marketingcloud
A class that represents the initialization status of the MarketingCloudSdk.
1enum Status : Enum<InitializationStatus.Status>Enumeration representing the overall outcome of the SDK’s initialization.
Values:
SUCCESS - SDK initialized successfullyCOMPLETED_WITH_DEGRADED_FUNCTIONALITY - SDK initialized but with reduced functionalityFAILED - SDK initialization failed1@JvmField
2val status: InitializationStatus.StatusThe initialization status of the SDK.
1@JvmField
2val isUsable: BooleanWhether the SDK initialized sufficiently to be usable. Returns true when status is SUCCESS or COMPLETED_WITH_DEGRADED_FUNCTIONALITY.
1@JvmField
2val initializedComponents: List<String>List of component names that were initialized. Useful for debugging initialization issues.
1@JvmField
2val encryptionChanged: BooleanWhether the encryption key changed since the last init call. When true, all previously stored data has been cleared.
1@JvmField
2val storageError: BooleanWhether an error occurred initializing SDK storage. When true, the SDK cannot store information and status will be FAILED.
1@JvmField
2val playServicesStatus: IntThe availability status returned by GoogleApiAvailability.
1@JvmField
2val playServicesMessage: String?The error message from playServicesStatus, if any.
1@JvmField
2val sslProviderEnablementError: BooleanWhether an error occurred calling ProviderInstaller.installIfNeeded() to ensure required SSL providers are available.
1@JvmField
2val locationsError: BooleanWhether an error occurred initializing the location manager (when geofencing or proximity are enabled).
1@JvmField
2val messagingPermissionError: BooleanWhether region messaging couldn’t be enabled due to missing ACCESS_FINE_LOCATION or ACCESS_BACKGROUND_LOCATION permissions.
1@JvmField
2val proximityError: BooleanWhether an error occurred initializing the proximity manager. Check getSdkState() for details.
1@JvmField
2val unrecoverableException: Throwable?Any unrecoverable exception encountered during initialization.
11.0.0