ProcessPushNotification
public struct ProcessPushNotification : Codable, Equatable, TDFunction
Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the server is required to fetch new data. Can be called before authorization
-
Undocumented
Declaration
Swift
public typealias Result = Ok
-
JSON-encoded push notification payload with all fields sent by the server, and “google.sent_time” and “google.notification.sound” fields added
Declaration
Swift
public let payload: String
-
Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the server is required to fetch new data. Can be called before authorization
Declaration
Swift
public init(payload: String)
Parameters
payload
JSON-encoded push notification payload with all fields sent by the server, and “google.sent_time” and “google.notification.sound” fields added