We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Make the content of WebPushMessage more customizable to enable giving options outside of only title and body.
WebPushMessage
{ "//": "Visual Options", "body": "<String>", "icon": "<URL String>", "image": "<URL String>", "badge": "<URL String>", "dir": "<String of 'auto' | 'ltr' | 'rtl'>", "timestamp": "<Long>" "//": "Both visual & behavioral options", "actions": "<Array of Strings>", "data": "<Anything>", "//": "Behavioral Options", "tag": "<String>", "requireInteraction": "<boolean>", "renotify": "<Boolean>", "vibrate": "<Array of Integers>", "sound": "<URL String>", "silent": "<Boolean>", }
Add a customParameters field to the record that is used for the resulting json.
customParameters
Make WebPushMessage a class so it can be extended.
The text was updated successfully, but these errors were encountered:
feat: Extend WebPushMessage with the custom settings (#20304)
a1cbb0d
Add an API to set custom options as described in https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification#parameters Fixes #20285
This ticket/PR has been released with Vaadin 24.6.0.alpha4 and is also targeting the upcoming stable 24.6.0 version.
Sorry, something went wrong.
mshabarov
Successfully merging a pull request may close this issue.
Describe your motivation
Make the content of
WebPushMessage
more customizable to enable giving options outside of only title and body.Describe the solution you'd like
Add a
customParameters
field to the record that is used for the resulting json.Describe alternatives you've considered
Make
WebPushMessage
a class so it can be extended.The text was updated successfully, but these errors were encountered: