Closed aman-u-7span closed 2 months ago
@aman-u-7span Maybe sw of onesignal conflict with other sw, please move sw of onesignal without root folder. Change scope and path of OneSignalSDKWorker.js Ex: serviceWorkerParam: { scope: "/onesignal/push-notifications/" }, serviceWorkerPath: "onesignal/push-notifications/OneSignalSDKWorker.js",
@dongph9x I didn't have any other service worker but moving service worker to another folder worked. Thanks mate really appreciate it.
What happened?
OneSignal is initialised successfully and there are no error or warnings in browser but this seems to be very weird behaviour as push notifications are received only if tab is completely closed.
What browsers are you seeing the problem on?
Firefox, Chrome (Chromium), Safari
What operating system are you running?
macOS monterey 12.7.1
Steps to reproduce?
What did you expect to happen?
I expect to receive notifications even if tab is active or inactive.
Relevant log output
No response