pub async fn process_push_notification(
payload: String,
client_id: i32,
) -> Result<(), Error>Expand description
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
§Arguments
payload- JSON-encoded push notification payload with all fields sent by the server, and “google.sent_time” and “google.notification.sound” fields addedclient_id- The client id to send the request to