I receive the push notification within the service worker, however, the data property is always empty. I'm setting the title and body for the payload. Have the public/private keys and auth from the subscription. The only thing I can think of is that I haven't setup an SSL cert for the site. Would this have an impact?
Stefan Kientzler - 2020-08-27 14:34:47 - In reply to message 1 from Daniel Masi
i am a bit surprised that the subscription worked at all outside of a secure context (SSL/HTTPS), since the JS Push API normally only works then (see also section 2.1.1. in my tutorial).
I myself do not have any constellation without SSL in which I can even create a subscription - so unfortunately I cannot say how or which data is transmitted in such a case. From my point of view it surely can be one possible effect, that the entire payload of the message is not transferred then.
So i think you first should try it in an environment with secure context.