MoEngageMessagingPermissionHandler

@objc
public final class MoEngageMessagingPermissionHandler : NSObject
  • Declaration

    Swift

    @objc
    public static let shared: MoEngageMessagingPermissionHandler
  • Register for provisional push notification.

    Declaration

    Swift

    @available(iOS 12.0, *)
    @available(tvOS, unavailable)
    public func registerForRemoteProvisionalNotification(inFlow flow: MoEngageMessagingConstants.PushPermissionFlow,
                                                         categories: Set<UNNotificationCategory>? = nil)

    Parameters

    flow

    The push permission check reason.

    categories

    A type of notification your app supports and the custom actions that the system displays.

  • Check if device opted-in for push notification.

    Declaration

    Swift

    @objc
    public func isPushOptedIn(forInstance sdkInstance: MoEngageSDKInstance) -> Bool

    Parameters

    sdkInstance

    The instance of SDK push permission checked for.

    Return Value

    Whether push permission is provided.