@@ -111,15 +111,17 @@ Example:
111
111
await OneSignal .Notifications .requestPermission ();
112
112
```
113
113
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'. | |
123
125
124
126
125
127
@@ -172,6 +174,14 @@ OneSignal.Debug.setLogLevel(“trace”);
172
174
173
175
# Limitations
174
176
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
+
175
185
## January 2023
176
186
### Version 16 (alpha)
177
187
It is recommended this version is used ** only** in development and staging envrionments.
0 commit comments