VirtualGateway

public class VirtualGateway

The ThinCloud Virtual Gateway wraps APNs to provide command forwarding for your devices.

  • The VirtualGatewayDelegate responsible for handling incoming ThinCloud Virtual Gateway commands.

    Declaration

    Swift

    public var delegate: VirtualGatewayDelegate?
  • UIApplicationDelegate remote notification registration handler.

    Declaration

    Swift

    public func didRegisterForRemoteNotificationsWithDeviceToken(_ deviceToken: Data)

    Parameters

    deviceToken

    A token that identifies the device to APNs.

  • UIApplicationDelegate remote notification failure handler.

    Declaration

    Swift

    public func didFailToRegisterForRemoteNotificationsWithError(_: Error)

    Parameters

    error

    An error that encapsulates information why registration did not succeed.

  • UIApplicationDelegate remote notification handler.

    Declaration

    Swift

    public func didReceiveRemoteNotification(userInfo: [AnyHashable: Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void)

    Parameters

    userInfo

    A dictionary that contains information related to the remote notification.

    completionHandler

    The callback responsible for conveying the fetch result of the remote notification.