Skip to content

Commit

Permalink
Merge pull request #65 from OneSignal/update-readme
Browse files Browse the repository at this point in the history
Update README with Troubleshooting section
  • Loading branch information
rgomezp authored Apr 19, 2022
2 parents 9ce8013 + 020b34f commit 5f4bb8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Version 2.0 was recently released. Read the [Migration Guide](https://github.com

You can use `yarn` or `npm`.


### Yarn

```bash
Expand Down Expand Up @@ -164,6 +163,10 @@ OneSignal.on('subscriptionChange', function(isSubscribed) {

See the [OneSignal WebSDK Reference](https://documentation.onesignal.com/docs/web-push-sdk) for all available event listeners.

## Troubleshooting
### `window.OneSignal already defined as 'object'!`
You will get this error if you initialize twice. Make sure you are only initializing one time. When wrapped with `React.StrictMode`, your app might be rendering twice.

---

## 🤝 Contributing
Expand Down

0 comments on commit 5f4bb8e

Please sign in to comment.