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

Fire an event when push server connectivity changes #194

Closed
ghost opened this issue Jun 5, 2016 · 2 comments
Closed

Fire an event when push server connectivity changes #194

ghost opened this issue Jun 5, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 5, 2016

Do we want a way to notify sites when the connection to the push server is interrupted or resumed? Firefox Hello originally requested this as a way to show a user's presence status for IM and calls.

This would be similar to navigator.onLine and the online/offline events...though accounting for cases where the browser is online, but can't receive pushes because the server is down or blocked by a proxy.

I think this came up once before, but I can't find the issue.

@martinthomson
Copy link
Member

Do we want a way to notify sites when the connection to the push server is interrupted or resumed?

No. The expected behaviour for push is that devices will go offline, and often. We don't want to wake the device specially every time this happens.

I know that some people like presence, but the whole point of having a mobile device with a push service is to render presence redundant. With these, it is always possible to send a message to a user.

Presence is then reduced to whether the user wants to be disturbed, a far more valuable signal, albeit a harder one to reliably acquire.

As for the case where the push service is down when the network isn't, maybe we can let the user know, but that becomes a UX problem.

@ghost
Copy link
Author

ghost commented Jun 8, 2016

All good points!

@ghost ghost closed this as completed Jun 8, 2016
This issue was closed.
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

1 participant