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

Refresh APNS Connection #11

Open
bisikli opened this issue Sep 8, 2018 · 1 comment
Open

Refresh APNS Connection #11

bisikli opened this issue Sep 8, 2018 · 1 comment

Comments

@bisikli
Copy link

bisikli commented Sep 8, 2018

Hello,

APNS service has a known. bug that, if you send a request in a session which stays idle for a while, APNS service returns an internal server error such that : "500 Internal Server Error: Unable to write frame"

Other push services overcome this problem by refreshing their APNS connections when they encounter this kind of a problem. (for example: jchambers/pushy#529)

Is there a way to refresh connection in Perfect Notifications?

@kjessup
Copy link
Member

kjessup commented Sep 8, 2018

When it goes to send msgs to an existing connection, the library will first try a PING to ensure the connection is still good. If it's not it will open a new one.

https://github.com/PerfectlySoft/Perfect-Notifications/blob/master/Sources/PerfectNotifications/NotificationPusher.swift#L305

Verify that you are using the latest tagged version, 3.0.4. If you are up to date and still seeing this issue then any further information you can provide would be helpful.

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