webpush-java icon indicating copy to clipboard operation
webpush-java copied to clipboard

How to send empty push notification ?

Open arpit728 opened this issue 5 years ago • 4 comments

How can I send an empty push notification, currently it gives NPE I want to do this for compatibility with chrome versions below 49.

arpit728 avatar Sep 02 '19 13:09 arpit728

Can you share the stack trace of the NPE?

martijndwars avatar Sep 02 '19 15:09 martijndwars

@MartijnDwars

One more thing I would like to highlight here, for chrome version below 49, subscription object only contains endPint and not the encryption keys. But this library always tries to encrypt, how to deal with this?

arpit728 avatar Sep 02 '19 16:09 arpit728

That would be a bug, thanks for reporting. Do you want to work on a PR? Otherwise, I may be able to take a look this weekend.

martijndwars avatar Sep 03 '19 05:09 martijndwars

@MartijnDwars Cool, I would take up this PR.

arpit728 avatar Sep 03 '19 06:09 arpit728