Set notifications time in google firebase

Is there a way to specify the time i want the notification to be on the screen? Or just leave it be until its closed. This is the code:

    self.addEventListener('notificationclick', function(event) {
    //console.log('[Service Worker] Notification click Received.');

    var url =;

    //console.log('[Service Worker] event url = ' + url );


    // ensure the browser doesn't terminate our service worker before our new window has been displayed.
        clients.openWindow( url )

Read more here: Set notifications time in google firebase

Leave a Reply

Your email address will not be published. Required fields are marked *