Skip to content

Commit 5148dcc

Browse files
authored
Merge pull request #106 from OneSignal/cd_update
Generator Update
2 parents a6e4c54 + 9c39342 commit 5148dcc

File tree

7 files changed

+186
-117
lines changed

7 files changed

+186
-117
lines changed

MigrationGuide.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,17 @@ Example:
111111
await OneSignal.Notifications.requestPermission();
112112
```
113113

114-
| Sync/Async | Function Name | Description | Argument List |
115-
| ---------- | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
116-
| `async` | `setDefaultUrl` | Sets the default URL for notifications. | `url` (string) |
117-
| `async` | `setDefaultTitle` | Sets the default title for notifications. | `title` (string) |
118-
| `sync` | `isPushSupported` | Returns true if the current browser supports web push. | |
119-
| `async` | `getPermissionStatus` | Returns the browser's current notification permission. | `onComplete` (Action<NotificationPermission>) |
120-
| `async` | `requestPermission` | Requests push notifications permission via the native browser prompt. | |
121-
| `sync` | `addEventListener` | Adds an event listener for the following events:<br><br>- `click`<br>- `willDisplay`<br>- `dismiss`<br>- `permissionPromptDisplay`<br>- `permissionChange`*<br> * argument type: bool | - `<event>` (string)<br>- `(arg: <type>) => {}` (callback) |
122-
| `sync` | `removeEventListener` | Removes the event listener. | `() => {}` (the event listener you want to remove) |
114+
115+
| Sync/Async | Function / Property | Description | Argument List |
116+
| ---------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
117+
| `async` | `setDefaultUrl()` | Sets the default URL for notifications. | `url` (string) |
118+
| `async` | `setDefaultTitle()` | Sets the default title for notifications. | `title` (string) |
119+
| `sync` | `isPushSupported()` | Returns true if the current browser supports web push. | |
120+
| `async` | `requestPermission()` | Requests push notifications permission via the native browser prompt. | |
121+
| `sync` | `addEventListener()` | Adds an event listener for the following events:<br><br>- `click`<br>- `willDisplay`<br>- `dismiss`<br>- `permissionPromptDisplay`<br>- `permissionChange`*<br> * argument type: bool | - `<event>` (string)<br>- `(arg: <type>) => {}` (callback) |
122+
| `sync` | `removeEventListener()` | Removes the event listener. | `() => {}` (the event listener you want to remove) |
123+
| | `permission` | A boolean representing whether or not the user has granted permission for push notifications. | |
124+
| | `permissionNative` | A string representing the native push permission status: 'default', 'granted', or 'denied'. | |
123125

124126

125127

@@ -172,6 +174,14 @@ OneSignal.Debug.setLogLevel(“trace”);
172174

173175
# Limitations
174176

177+
## May 2023
178+
## Version 16 (beta)
179+
Please test thoroughly prior to production use.
180+
* Any User namespace calls must be invoked **after** initialization (async). Example: `OneSignal.User.addTag("tag", "2");`
181+
* HTTP environments are not supported.
182+
* AMP environments are not supported.
183+
* Identity verification is not functional.
184+
175185
## January 2023
176186
### Version 16 (alpha)
177187
It is recommended this version is used **only** in development and staging envrionments.

0 commit comments

Comments
 (0)