Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xpc connection interrupted #58

Open
randyhbh opened this issue Jun 9, 2017 · 1 comment
Open

xpc connection interrupted #58

randyhbh opened this issue Jun 9, 2017 · 1 comment

Comments

@randyhbh
Copy link

randyhbh commented Jun 9, 2017

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..

@jeremiegirault
Copy link
Contributor

jeremiegirault commented Sep 20, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants