Questions tagged [web-notifications]

The Web Notifications API provides a way for a web application to show a platform-level notification to a users — outside of a browser’s viewport and regardless of whether the web application that generated the notification is in the currently-active tab/window.

Web Notifications API for end-user notifications provides a way to alert users — outside the context of a web page — of an occurrence such as the delivery of an e-mail message.

https://notifications.spec.whatwg.org/

145 questions
0
votes
0 answers

OneSignal net::ERR_CONNECTION_RESET

I have a reactjs app which is connected to a oneSignal app for web notifications. here are my config for oneSignal function OneSignalInit(appid) { await OneSignal.init({ appId: appid }); OneSignal.showSlidedownPrompt(); } function…
DAbuzied
  • 111
  • 2
  • 8
0
votes
0 answers

Opera only shows notifications when switched to a different tab

I'm trying to setup Notification api in Opera Browser. My code works in Firefox, Safari, and Chrome. It does not entirely work in Opera GX. When the notification is created, the banner is only shown after the tab has been changed. It doesn't…
Seph Reed
  • 8,797
  • 11
  • 60
  • 125
0
votes
0 answers

Firebase Cloud messaging Notification Composer won't open

I am trying to send test notification in FCM(Firebase Cloud Messaging). I followed the documentation up to this step, but when I go to Notification Composer, I get a default landing webpage: Screenshot of website that says: Add an app to get…
0
votes
0 answers

Implement pusher for real-time web notifications in nextjs

I am getting the below error after initializing pusher on nextjs application: export { Client, RegistrationState, TokenProvider }; ^^^^^^ SyntaxError: Unexpected token 'export' I have also tried modifying the next.config.js file to the…
hs27
  • 65
  • 8
0
votes
1 answer

Firebase Web Push notification not triggered when window is open

i am implementing Firebase Web Push notification in Angular 10 everything is working fine when tab is not active, but when Tab is active not able to Trigger for new message. firebase version : 8.3.1 @angular/fire version : 6.1.4 firebasejs version…
Apurv Chaudhary
  • 1,672
  • 3
  • 30
  • 55
0
votes
0 answers

How to implement mqtt over websockets in browser clients?

I'm trying to use mqtt over websocket in my web application using the Paho JS library to implement notifications. I need to use persistent connection(to receive any pending messages) and for that a unique client id is a must. Problem 1: Multiple…
0
votes
1 answer

where I can Change FCM web notification click action url?

I tried to define the url which opens when user click on notification but it continue go to url('/') only . I send the new url with payload.data but I did not know where I can define this route in the client side so it opens when user click…
0
votes
0 answers

Javascript notification in background after checking with server. Service worker?

My website have the intention to in the background (when tab is not in focus) constantly check, with an interval of maybe one minute, with a server by making web requests to that server, and get a response back, if the message sends back a message,…
Snakehater
  • 145
  • 1
  • 9
0
votes
1 answer

How to customise web-notifications?

I want to send web-notifications with my own input and decide when I send it (e.g. submitting a form). I'm making this for non-coding experienced people, so I'm looking for a simple interface I'm trying to make a web notifications system from a…
0
votes
1 answer

Using Notification.image or Notification.icon

I'm working on deploying web push for notifications. Everything is working great, but I've come to understand that some browsers do not support Notification.image, or at least do not display said image. However, they all do seem to support…
Chris Pratt
  • 232,153
  • 36
  • 385
  • 444
0
votes
2 answers

Request from Firebase Hosting to Firebase Function blocked by CORS

I'm trying to send push notifications between two devices for a tiny prototype. Both of them are Vue.js apps with firebase SDK integrated, so to implement a push notification flow I deployed a firebase function, but when I call it from any of…
0
votes
1 answer

Firebase web push notification token not getting

I'm iOS developer not php, i'm implementing Firebase web push notifications for send and receive in web. I'm using xampp and php. For this i followed this tutorial https://www.itwonders-web.com/blog/push-notification-using-firebase-demo-tutorial.…
Naresh
  • 16,698
  • 6
  • 112
  • 113
0
votes
0 answers

FCM Web send message succeeds but nothing appears in Browser

I am sending following Notification Authorization:key=A..... Content-Type:application/json { "to" :…
0
votes
2 answers

Gos web socket bundle is not working with `symfony 4.2`

I am trying to implement a notification system similar to Facebook in Symfony 4.2. I tried installing gos/web-socket-bundle with composer. But it always return an error with error code 1. Is there any other alternate solution to implement this or…
0
votes
0 answers

Web notifications,On Desktop Receiving all the notification at the same time

I have sent two notifications one in the morning and one in the afternoon. My laptop is open for the whole time. However, I receive both the notifications at the same time i.e. in the afternoon. For some users this behavior is even worse they are…