Postal icon indicating copy to clipboard operation
Postal copied to clipboard

xpc connection interrupted

Open randyhbh opened this issue 7 years ago • 1 comments

hi i'm using this code to retrive some messages from my account

postal.connect(timeout: Postal.defaultTimeout, completion: { [weak self] result in
            switch result {
            case .success:

                let filter = .unread && .from(value: "[email protected]")
                self?.postal.search("INBOX", filter: filter) { result in
                    switch result {
                    case .success(let indexes):
                        self?.postal.fetchMessages("INBOX", uids: indexes, flags: [ .fullHeaders ], onMessage: { message in
                            self?.messages.insert(message, at: 0)
                        }, onComplete: { error in
                            if let error = error {
                                self?.showAlertError("Error Obteniendo los Mensajes", message: (error as NSError).localizedDescription)
                            } else {
                                self?.tableView.reloadData()
                            }
                        })
                    case .failure(let error):
                        self?.showAlertError("Error Obteniendo los Mensajes Filtrados", message: (error as NSError).localizedDescription)
                    }
                }
            case .failure(let error):
                self?.showAlertError("Error de Connección", message: (error as NSError).localizedDescription)
            }
        })
    } 

my questions are, i'm doing something wrong? there is an easy way? what is xpc connection interrupted?, i cant find nothing in google. I guess, it only matters to have connection to the network by data mobile or wifi, but I wonder, if I am using mobile data for my connection to the network, this influences something..

randyhbh avatar Jun 09 '17 02:06 randyhbh

Hi ! Apparently it seems okay. What is your issue precisely ?

jeremiegirault avatar Sep 20 '17 17:09 jeremiegirault