MoEngagePushTokenTask

@objc(MoEngagePushTokenTask)
public final class MoEngagePushTokenTask : MoEngageBaseTask, MoEngageTaskProtocol

Typed task returned by the push-token / registration family on MoEngageSDKMessagingsetPushToken(_:), didFailToRegisterForPush(), registerForRemoteNotification(...), registerForRemoteProvisionalNotification(...), setUserNotificationCategories(_:). Resolves with MoEngagePushTokenResult (marker) once the signal is accepted into the SDK’s APNs-registration pipeline.

Failure codes:

  • .invalidPushToken — nil/empty token (setPushToken only)
  • .sdkNotInitialized (shared) — no SDK instance / message-delegate handler unavailable

.pushRegisterFailed is reserved for future use; not currently emitted. didFailToRegisterForPush() resolves — the task tracks the customer’s CALL, not the APNs event being reported.

APNs-side outcomes (token delivery, permission grant) arrive via MoEngageMessagingDelegate, unchanged.