OneSignal/react-onesignal

[Bug]: Initilization on Firefox doesn't work.

sshanzel opened this issue · 5 comments

What happened?

Works perfectly on Chrome, but on Firefox, the app using the package is not working. It doesn't give any errors/warnings so it is a bit difficult to know where the issue could be coming from.

One thing I noticed though is that, in Chrome, the indexedDb is automatically created once initialized, but on Firefox, you won't see any relevant database.

Not sure though if this only happens in local development.

Steps to reproduce?

1. Install `react-onesignal`.
2. Run app initializing the SDK.
3. Test on Chrome (to verify it works, and it did - even sent messages from the dashboard).
4. Test on Firefox (doesn't work - not even registered on the Subscribed page in dashboard).

What did you expect to happen?

Should work smoothly like on Chrome. Should have been initialized as intended.

Relevant log output

When you execute OneSignal.isPushNotificationsSupported(); - it returns false.
Firefox v108.0.1
MacOS v12.5.1

After checking on production, it seems to only happen on local development.

Thanks for reporting @sshanzel ,

I wonder if it has to do with this. Can you check?

Thanks for your patience. We will attempt to resolve soon.

I wonder if it has to do with this. Can you check?

Thank you for your response. Unfortunately, it is not related to strict mode as we have it configured to false and we didn't use any form of wrapper relating to strict mode.