Notification url and data
Closed this issue · 0 comments
vladdoga commented
Hello and thank you for your great work!
When i click a notification it goes to my-website.com/null
In my service worker the event.data object is empty, have tried to send additional data like this:
$notification = new PushNotification('Test notification', [
PushNotification::BODY => $message,
PushNotification::ICON => '/admin/icons/success.png',
PushNotification::DATA => "some data",
PushNotification::TAG => "one tag"
]);
But event.data is still empty in the service worker. Any help is appreciated.
Thanks