Search code examples
node.jspush-notificationonesignalweb-push

Silent push notification for web oneSignal


Can I use silent web push notification using oneSignal? need to update some chunks of data without prompting the notification to user. I went through the documentation but couldn't find any useful data in it though. I am using Nest Js as BE and React Js as FE.


Solution

  • Sorry for posting my answer late, I sent a message to the onesignal team on their website's Support chat option. This is the reply I get, latest of July 20th, 2021. May be in future, they may integrate this feature, but unfortunately not available now.

    You cannot send notifications on web without displaying a notification to the user.

    You can add additional Data to the notification and access that data in the notificationDisplay event.

    Here is the docs on this: https://documentation.onesignal.com/docs/web-push-sdk#section-notification-display

    Thanks

    Ana From Onesignal (just for reference)