OneSignal-Website-SDK
OneSignal-Website-SDK copied to clipboard
Unable to run multiple one signal 'apps' due to db conflict
I have tested this on Chrome (Version 96.0.4664.110) and Safari (Version 15.2 (15612.3.6.1.8, 15612)). This issue is only reproducible on Safari. Chrome seems to not have this issue.
If you have more than 1 project on One Signal, you are unable to run the SDK in subsequent websites you visit without the SDK crashing due to an error in OneSignal/OneSignal-Website-SDK/build/ts-to-es6/src/services/IndexedDb.js.
In our case we have Dev, QA, Stage, Prod versions of the same website.
How to reproduce:
- Use safari in Private mode.
- Access any one of your apps with OneSignal SDK installed.
- Note no errors in logs.
- Open a new tab, still in Private mode and access a different app.
- Note errors in console:

Creating a new Private window and accessing the app which failed previously will not result in errors being logged.
Thank you for the issue and your patience. From a first look, I suspect this issue is not React SDK-specific but rather something happening on the WebSDK itself. I will move this issue to the correct repository.
Hello, I have not been able to reproduce this.
So to confirm, you can only reproduce this in a private window on Safari, correct? I have tested on version 15.5.
Is this resulting in any side-effects affecting your app's execution? In other words, why is this a problem, given push is not even supported in a private window?
Just a little more context would be helpful. Cheers
It was only affecting devs, who accessed multiple environments (i.e. multiple, different instances of one-signal within a single org). The private window step was just to ensure you're on a clean browser instance -- issue was reproducible outside of private mode. We are no longer managing the app in question, so I will close as not reproducible.