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

Why Feedback server disconnected as soon as I connected the feedback ok? #24

Closed
shuimutiane opened this issue Aug 14, 2014 · 4 comments
Closed

Comments

@shuimutiane
Copy link

Hello,I have a question:Why Feedback server disconnected as soon as I connected the feedback ok? And after I connected the feedback,the apns server will handle_info({ssl, SslSocket, Data}? give me the bad token? Thank you!!

@igaray
Copy link
Member

igaray commented Aug 14, 2014

Hello @shuimutiane, I'm sorry but I don't quite understand your question.
The feedback connection is opened when starting the apns_connection gen_server, and is closed immediately. The feedback connection is then re-opened every feedback_timeout milliseconds.

When the feedback is open, the gen_server will receive {ssl, SslSocket, Data} info messages.

What do you mean by "bad token"?

@shuimutiane
Copy link
Author

Thanks @igaray,
When the feedback is open,the gen_server will receive {ssl, SslSocket, Data} info messages, and read the stream written by the feedback service until there is no more data to read,the gen_server will receive the {ssl_closed, SslSocket} info messages after read over,and Feedback server disconnected?
The feedback connection is opened when starting the apns_connection gen_server, but
the gen_server did not receive any {ssl, SslSocket, Data} info message, and feedback connection is closed immediately, why?

@shuimutiane
Copy link
Author

Hi @igaray,
I want to send a message to some tokens,but I do not want to send one by one,how can i do?

@igaray
Copy link
Member

igaray commented Aug 15, 2014

Hi @shuimutiane
First, if the connection is closed correctly, and you receive {ssl_closed, Socket} it is probably because Apple does not have any info to send you. In any other case, it is most probably because you are connecting with an invalid certificate. Are you able to send any push notifications at all?

Secondly, it is unfortunately not possible to send more than one notification in a single call.

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

3 participants