onPerformJob

open override fun onPerformJob(sdk: SFMCSdk, jobConfig: JobConfig): JobResult

Executes a job with the specified configuration.

This method handles job execution for the PushFeature module. Currently supported jobs:

  • PUSH_TOKEN_REFRESH: Refreshes the Firebase device token

Return

JobResult.SUCCESS if the job was executed successfully, JobResult.FAILURE otherwise

Parameters

sdk

The SFMCSdk instance. Must not be null.

jobConfig

The job configuration containing job details. Must not be null.

Throws

IllegalStateException

if the PushFeature is torn down