Onesignal script not fully loaded when subscribed and using many other js libraries

Created on 28 May 2025, 9 days ago

Problem/Motivation

Using the module together with a site that is using a lot of js(such as google tag, dfp, metrics, bigpipe, and so on), The bell and the prompt message is only loading on first visit, not when subscribing. Debugging is tedious, the only thing I could say is that the head script is attached as it should, but I see this message:

Anyway moving to the deferred flavour of onesignal, as it is recommended in onesignal custom code wizard, and changing:
https://cdn.onesignal.com/sdks/OneSignalSDK.js to https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js

Solves the issue...

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇪🇸Spain aleix

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024