Push

open class Push

Class used to register and unregister a device to receive push notifications.

  • Undocumented

    Declaration

    Swift

    public typealias BoolCompletionHandler = (Bool, Swift.Error?) -> Void
  • Sets and returns the number for the icon badge for the current running app.

  • Unregister the current device to receive push notifications.

    Declaration

    Swift

    @available(*, deprecated, message: "Deprecated in version 3.17.1. Please use Push.unRegisterDeviceToken(options:completionHandler:﹚ -> Void")
    open func unRegisterDeviceToken(
        _ completionHandler: BoolCompletionHandler? = nil
    )
  • Unregister the current device to receive push notifications.

    Declaration

    Swift

    @available(*, deprecated, message: "Deprecated in version 3.17.1. Please use Push.unRegisterDeviceToken(options:completionHandler:﹚ -> Void")
    open func unRegisterDeviceToken(
        _ completionHandler: ((Swift.Result<Void, Swift.Error>) -> Void)? = nil
    )
  • Unregister the current device to receive push notifications.

    Declaration

    Swift

    open func unRegisterDeviceToken(
        options: Options? = nil,
        completionHandler: ((Swift.Result<Void, Swift.Error>) -> Void)? = nil
    )
  • Resets the badge number to zero.