[Webkit-unassigned] [Bug 252544] Non-opened Home Screen web app can not receive post message from Notificationclick callback

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 6 23:16:34 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=252544

--- Comment #3 from lehu <hi at lehu.in> ---
Hi, Brady,

First, thank you for testing this issue.

The code snippet may have syntax error. It is a little hard to paste all code needed to reproduce this bug. What I try hard to do is to demonstrate how the issue is, and the snippet is just a clue.

However, I have finished a complete demo. And its URL is

https://taoshu.in/web/push-demo/

In the demo page, there is a form to display the subscription. And at the bottom of that page, there is a section named "Web Push Custom Data". Every time we push some message with some custom data and click the notification, the custom data will be displayed in that section. But if the Home Screen web app have not booted, click the notification will not let the bottom display custom data.

And I also made a Push API. If you use httpie, here is the command needed to push some message:


```
http -f https://taoshu.in/+/push title=WebPush body="Ping from taoshu.in" data="娃哈哈��" subs="web-push-subscription-data-in-json"
```

In the above command, the *data* argument is used to send custom data to web app. And the *subs* argument is used to set the web push subscription. You can just copy the subscription in the demo page form.

Feel free to comment this bug if you have any problem.

Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230307/ad5ee7c2/attachment-0001.htm>


More information about the webkit-unassigned mailing list