Search code examples
reactjsfirebasefirebase-cloud-messagingweb-push

Make web push notifications to show for longer


We integrated web push notifications in our React App with firebase, it is working fine both in foreground and in background. When the app is in foreground we attached a event listener (onMessage) that will handle the event and will create a push notification with the Notification Object. It is also working fine.

My question is, is there any way to increase the amount of time the notification (foreground notification) will be shown to the user? currently it is visible for 5 to 6 seconds (in Brave, Linux Mint).

Thanks in advance


Solution

  • No you cannot increase the time your notification is shown.