Can we send the notification from the FCM even if the chrome browser is closed?

123 views
Skip to first unread message

Ravi Shah

unread,
Feb 21, 2019, 7:24:54 AM2/21/19
to Push Notifications Development
Hello, I have one application where my requirement is to receive the notification even when the browser is not open. Is it possible to achieve the said requirement and if yes then in which way?

I have implemented the service worker using JavaScript and on the basis of that I am able to show the notification in the background and foreground using FCM but once I close the whole browser I am not able to get the notification. However when I open the browser again I get the notification which has been queued.

Thanks.

Peter Beverloo

unread,
Feb 21, 2019, 7:29:20 PM2/21/19
to Ravi Shah, Push Notifications Development
Hi Ravi,

Chrome for Android is able to receive messages even when the browser is not running. On other platforms messages can only be received when Chrome is running, but we don't require any open tabs or connections with the origin that you're receiving the message for.

Thanks,
Peter


--
You received this message because you are subscribed to the Google Groups "Push Notifications Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to push-notification...@chromium.org.
To post to this group, send email to push-notifi...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/push-notifications-dev/ae242724-0e74-4ab3-ae1f-d68dd6790921%40chromium.org.

Ravi Shah

unread,
Feb 23, 2019, 3:13:48 AM2/23/19
to Push Notifications Development

Hi, Peter,

 

Thank you very much for your kind explanations!


But I have one more question related to it. My Website is on PWAs so that user can install on desktop i.e. Windows 10 OS so when we close the tab like we do in the Android Chrome Isn't it possible to do same in Desktop? If so, then we can Close all the tab of chrome and we can give FCM notification to that PWA installed so for the same we didn'tt need to open the Chrome browser or installed.

Is their any plan to implement this type of feature?

Thanks
Ravi.

Reply all
Reply to author
Forward
0 new messages