RegisterDevice
public struct RegisterDevice : Codable, Equatable, TDFunction
Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription
-
Undocumented
Declaration
Swift
public typealias Result = PushReceiverId
-
Device token
Declaration
Swift
public let deviceToken: DeviceToken
-
List of user identifiers of other users currently using the client
Declaration
Swift
public let otherUserIds: [Int32]
-
Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription
Declaration
Swift
public init(deviceToken: DeviceToken, otherUserIds: [Int32])
Parameters
deviceToken
Device token
otherUserIds
List of user identifiers of other users currently using the client