You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
- This is the cdn i'm using 'https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js'.
- importScripts("https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.sw.js") this is inside my service-worker file.
What did you expect to happen?
I expect to receive notifications even if tab is active or inactive.
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
@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",
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
The text was updated successfully, but these errors were encountered: