ably / ably-js

Javascript, Node, Typescript, React, React Native client library SDK for Ably realtime messaging service
https://ably.com/download
Apache License 2.0
308 stars 55 forks source link

Support for receiver-side browser push notifications. #429

Closed tcard closed 3 months ago

tcard commented 6 years ago

We currently have server-side support for receiving push notifications in the browser as implemented in Firefox. We'd like to integrate this into the client-side API, following the push receiver spec as closely as possible.

We'd also need to make sure it works for Chrome, Safari and others. As of today, I've been using this little Go program to test device registration, channel subscription and receiving notifications, but it only works in Firefox. The current server-side implementation expects a targetUrl and an encryptionKey, both unique per device (browser), but this might need to be adapted too. (I hope not, since that's supposed to be a W3C standard.)

tcard commented 6 years ago

Missing:

tcard commented 6 years ago

Also, PushChannel is not implemented at all.

jamienewcomb commented 2 years ago

@Peter-Maguire when we move a ticket to blocked, can we remember to comment on the ticket stating the reason why please. We want to avoid this knowledge being stored with those who only attend the stand-ups.

See these internal docs https://ably.atlassian.net/wiki/spaces/DEL/pages/1789460495/Ticket+status+guidance+-+what+do+they+mean and https://ably.atlassian.net/wiki/spaces/PEO/pages/1489305654/Written-first+communication+at+Ably cc @deanna-lad

Peter-Maguire commented 2 years ago

Got it - this is blocked due to the backend web push API support not being complete. The backend requires a public/private ECDSA keypair to be generated, but browsers do not support exporting the keys in a format that the backend can understand. The general consensus seems to be that work on JS push would be better directed towards react-native, as there is more of a demand and already proven backend support for FCM/APN

jamienewcomb commented 2 years ago

@Peter-Maguire thank you

backend web push API support not being complete

Is this something we need the realtime team to fix and if so, has it been raised with them?

paddybyers commented 2 years ago

Web push needs to find its way into the relevant pod backlog, get scoped, prioritised, etc. There's multiple parts needed.

jamienewcomb commented 2 years ago

Yeah exactly. Peter was doing some initial work to see how complete the web push implementation was and if it actually works. The outcome is we are quite far off so if peter can elaborate on 'web push API support not being complete' in a ticket, then at least this will help the next team/pod who do pick this up

jamienewcomb commented 3 months ago

Hey everyone - pleased to say that 'Push notification support for web browser in ably-js lib' and 'React Native support for Push Notifications' are in development and should be released over the next 6-8 weeks. These are duplicate issues so I will close them.

cc @owenpearson