OneSignal / OneSignal-Website-SDK

OneSignal is a push notification service for web and mobile apps. This SDK makes it easy to integrate your website with OneSignal Push Notifications. https://onesignal.com
Other
383 stars 115 forks source link

[Fix] notification click event not firing if it opens a new tab #1132

Closed jkasten2 closed 7 months ago

jkasten2 commented 7 months ago

Description

1 Line Summary

Fix notification click event not firing if it opens a new tab.

Details

The internal fireStoredNotificationClicks() function was not called to fire any pending click events when OneSignal.Notifications.addEventListener('click', function() {}) is called.

Validation

Tests

Tested on Chrome 119 on Window 11, testing both "focus" and "navigate" options for notification open behavior.

Info

Checklist

Programming Checklist Interfaces:

Functions:

Typescript:

Other:

Screenshots

Tested click Behavior Exact: image

Tested click behavior Focus: image

Info

Checklist


Related Tickets



This change is Reviewable