Anybody looked into https://developer.mozilla.org/en-US/docs/Web/API/Push_API and how that would work with 357 (push notifications)? From what I understand we don't need the App Server bits?
debaclehas left
pdurbinhas joined
j.rhas left
larmahas left
larmahas joined
pdurbinhas left
j.rhas joined
Dele Olajidehas joined
delehas joined
blablahas left
delehas left
pdurbinhas joined
blablahas joined
Dele Olajidehas left
pdurbinhas left
pdurbinhas joined
krauqhas joined
pdurbinhas left
pdurbinhas joined
DebXWoodyhas joined
pdurbinhas left
rionhas left
blablahas left
DebXWoodyhas left
blablahas joined
remkohas left
XSFhas left
madhur.garghas joined
debaclehas joined
COM8has joined
kokonoehas left
kokonoehas joined
rionhas joined
COM8has left
DebXWoodyhas joined
COM8has joined
COM8has left
rtq3has left
rtq3has joined
alacerhas joined
kokonoehas left
pdurbinhas joined
Dele Olajidehas joined
pdurbinhas left
Nekithas joined
matlaghas left
matlaghas joined
marc_has left
valohas left
Yagizahas joined
DebXWoodyhas left
valohas joined
Alexhas left
Alexhas joined
kokonoehas joined
kokonoehas left
rionhas left
kokonoehas joined
DebXWoodyhas joined
madhur.garghas left
madhur.garghas joined
madhur.garghas left
larmahas left
larmahas joined
kokonoehas left
kokonoehas joined
DebXWoodyhas left
rtq3has left
rtq3has joined
marc_has joined
rionhas joined
kokonoehas left
kokonoehas joined
lumihas joined
frainzhas left
frainzhas joined
DebXWoodyhas joined
debaclehas left
kokonoehas left
debaclehas joined
kokonoehas joined
rtq3has left
rtq3has joined
rtq3has left
DebXWoodyhas left
kokonoehas left
kokonoehas joined
rtq3has joined
valohas left
valohas joined
kokonoehas left
rtq3has left
rtq3has joined
blablahas left
blablahas joined
kokonoehas joined
lumihas left
Nekithas left
lumihas joined
lumihas left
lumihas joined
Tobiashas left
DebXWoodyhas joined
Tobiashas joined
madhur.garghas joined
kokonoehas left
kokonoehas joined
pdurbinhas joined
madhur.garghas left
madhur.garghas joined
kokonoehas left
kokonoehas joined
pdurbinhas left
Yagizahas left
Yagizahas joined
debaclehas left
Dele Olajide
>pep.: From what I understand we don't need the App Server bits?
I have implemented this with Converse and Openfire. You don't need app server to push the messages. Service worker talks direct to push service. You still need the subscription endpoint data to be stored securely for each client service worker on a server. In my case, I used user properties in Openfire. It would be nice to do a simpler version of XEP 357 for web clients that cuts out the app server and uses PEP or private Storage to store the push subscription endpoint data.
Dele Olajidehas left
jeroenhas joined
pdurbinhas joined
pep.
Where is the code? :)
pep.
We actually spent time today implementing it again in converse.. (and prosody)
The client should probably just enable web push each time it connects. If you put stuff in PEP you can't reliably identity yourself back anyway can you.
pep.
The server is able to GC dead endpoints by sending something to them, and the push server will reply with "it's dead Jim"
Dele Olajide
>Ge0rG: What's a service worker in that context?
The persistent code that runs on the client that handles the push notification from the browser vendor push service
Dele Olajide
>pep.: Dele Olajide, why PEP btw
no particular reason. I used non-standard user properties in my openfire server plugin implementation
remkohas joined
pep.
Do you have a link to your implementation btw?
Ge0rG
Dele Olajide: then I don't understand how you don't need an app server
pep.
Ge0rG, because the client dev doesn't have to register anything
pep.
The application itself can request a slot using the Web Push API. The Push server sends back an endpoint url that it passes to the XMPP server
Dele Olajide
I did not add that openfire was sending the push notifications by making direct requests to vendor push service
pep.
https://hackmd.io/bKFV8ew8TAuIzMTnuhmFPQ?view#Enabling-Flow Please don't look at the rest, it's ready just for testing between us today, nothing might stay the same
Ge0rG
And since when can an xmpp server talk to web endpoints?
pep.
prosody has net.http apparently, an http client
pep.
**it's really just for us testing today
Ge0rG
So you implemented the app service inside of openfire...
pep.
yeah you can say that
pep.
The App Server just being an http client
Dele Olajide
Sorry, i keep forgetting openfire is both an xmpp server and web server 😉