Handle web push notification click

146 views
Skip to first unread message

Алексей

unread,
Dec 9, 2021, 10:52:41 AM12/9/21
to Firebase Google Group
Hello everybody. Hopefully the question is at the address. I send push notifications through firebase (specifically through the kreait / php-firebase lib). Everything works well. Pushes reach mobile devices and desktop browsers. But there is a problem when the user clicks the push on desktop.

If the url contained in the push is already open in any of the tabs, then the browser simply switches to this tab. This is not quite what I need. I need the browser to always follow the url attached to the push.

Has anyone faced this problem?

P.S.: If there is no tab with this url open, then it works fine and the proper link will be opened
Reply all
Reply to author
Forward
0 new messages