Skip to content

Commit a599a6c

Browse files
OneSignalfadi-george
authored andcommitted
chore: sync with web-shim-codegen v3.0.8
1 parent 3c4a609 commit a599a6c

File tree

2 files changed

+4
-39
lines changed

2 files changed

+4
-39
lines changed

.github/ISSUE_TEMPLATE/workflows/Zapier.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ OneSignal.init({ appId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' }).then(() => {
8383
```
8484

8585
### Init Options
86+
8687
You can pass other [options](https://documentation.onesignal.com/docs/web-sdk-reference#init) to the `init` function. Use these options to configure personalized prompt options, auto-resubscribe, and more.
8788

8889
<details>
@@ -109,7 +110,7 @@ You can pass other [options](https://documentation.onesignal.com/docs/web-sdk-re
109110
| `[key: string]` | `any` | Additional properties can be added as needed. |
110111

111112
**Service Worker Params**
112-
You can customize the location and filenames of service worker assets. You are also able to specify the specific scope that your service worker should control. You can read more [here](https://documentation.onesignal.com/docs/onesignal-service-worker-faq#sdk-parameter-reference-for-service-workers).
113+
You can customize the location and filenames of service worker assets. You are also able to specify the specific scope that your service worker should control. You can read more [here](https://documentation.onesignal.com/docs/onesignal-service-worker#custom-code-setup).
113114

114115
In this distribution, you can specify the parameters via the following:
115116

@@ -124,7 +125,7 @@ In this distribution, you can specify the parameters via the following:
124125

125126
### Service Worker File
126127

127-
If you haven't done so already, you will need to add the [OneSignal Service Worker file](https://github.com/OneSignal/OneSignal-Website-SDK/files/11480764/OneSignalSDK-v16-ServiceWorker.zip) to your site ([learn more](https://documentation.onesignal.com/docs/web-push-quickstart#step-6-upload-files)).
128+
If you haven't done so already, you will need to add the [OneSignal Service Worker file](https://github.com/OneSignal/OneSignal-Website-SDK/files/11480764/OneSignalSDK-v16-ServiceWorker.zip) to your site ([learn more](https://documentation.onesignal.com/docs/onesignal-service-worker#upload-the-js-file-to-your-server)).
128129

129130
The OneSignal SDK file must be publicly accessible. You can put them in your top-level root or a subdirectory. However, if you are placing the file not on top-level root make sure to specify the path via the service worker params in the init options (see section above).
130131

@@ -194,9 +195,7 @@ OneSignal.Notifications.addEventListener('click', (event) => {
194195
});
195196
```
196197

197-
198-
199-
See the [OneSignal WebSDK Reference](https://documentation.onesignal.com/docs/web-sdk-reference#addeventlistener-push-notification) for all available event listeners.
198+
See the [OneSignal WebSDK Reference](https://documentation.onesignal.com/docs/web-sdk-reference#addeventlistener-notifications) for all available event listeners.
200199

201200
## Troubleshooting
202201

0 commit comments

Comments
 (0)