PushFeature

Package: com.salesforce.marketingcloud.pushfeature

Type: class

Implements: ModuleInterface

Main class for the Push Feature Module.

This class provides comprehensive functionality for push notifications and related features within the Salesforce Marketing Cloud SDK.

Key Features:

  • Firebase Cloud Messaging (FCM) integration
  • Push token management and refresh
  • Push notification enablement/disablement
  • Silent push message handling
  • Job scheduling for background operations
  • State management and debugging capabilities

Initialization Pattern:

  • Singleton pattern with thread-safe initialization
  • State management and lifecycle handling
  • Component-based architecture
  • Proper error handling and logging
  • Asynchronous initialization with completion callbacks

Thread Safety: This class is thread-safe and uses atomic operations for state management. All public methods can be called from any thread.

Since: 1.0.0

object Companion

Returns the current state of the PushFeature module as a JSONObject.

Gets the configuration used to initialize this PushFeature instance.

Returns: The PushFeatureConfig instance


Gets the initialization status of this PushFeature instance.

Returns: The initialization status or null if not initialized


Gets the NotificationManager instance for notification operations.

Returns: The NotificationManager instance


Gets the PushMessageManager instance for push notification operations.

Returns: The PushMessageManager instance


Checks if the PushFeature instance is torn down.

Returns: true if torn down, false otherwise