VirtualGateway
public class VirtualGateway
The ThinCloud Virtual Gateway wraps APNs to provide command forwarding for your devices.
-
The
VirtualGatewayDelegateresponsible 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
deviceTokenA token that identifies the device to APNs.
-
UIApplicationDelegate remote notification failure handler.
Declaration
Swift
public func didFailToRegisterForRemoteNotificationsWithError(_: Error)Parameters
errorAn 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
userInfoA dictionary that contains information related to the remote notification.
completionHandlerThe callback responsible for conveying the fetch result of the remote notification.
VirtualGateway Class Reference