You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -133,7 +133,8 @@ Initialize the SDK with your OneSignal app ID. Call during app startup.
133
133
| ----------- | ------------------- |
134
134
| **`appId`** | <code>string</code> |
135
135
136
-
---
136
+
--------------------
137
+
137
138
138
139
### login(...)
139
140
@@ -147,7 +148,8 @@ Log in to OneSignal as the user identified by `externalId`, switching the user c
147
148
| ---------------- | ------------------- |
148
149
| **`externalId`** | <code>string</code> |
149
150
150
-
---
151
+
--------------------
152
+
151
153
152
154
### logout()
153
155
@@ -157,7 +159,8 @@ logout() => Promise<void>
157
159
158
160
Log out the current user. The SDK will reference a new device-scoped user.
159
161
160
-
---
162
+
--------------------
163
+
161
164
162
165
### setConsentRequired(...)
163
166
@@ -171,7 +174,8 @@ Set whether user privacy consent is required before sending data to OneSignal. C
171
174
| -------------- | -------------------- |
172
175
| **`required`** | <code>boolean</code> |
173
176
174
-
---
177
+
--------------------
178
+
175
179
176
180
### setConsentGiven(...)
177
181
@@ -185,10 +189,12 @@ Indicate whether the user has granted privacy consent.
185
189
| ------------- | -------------------- |
186
190
| **`granted`** | <code>boolean</code> |
187
191
188
-
---
192
+
--------------------
193
+
189
194
190
195
### Interfaces
191
196
197
+
192
198
#### OneSignalDebugAPI
193
199
194
200
Debug helpers exposed via `OneSignal.Debug`.
@@ -198,6 +204,7 @@ Debug helpers exposed via `OneSignal.Debug`.
198
204
| **setLogLevel** | (logLevel: <a href="#loglevel">LogLevel</a>) => void | Set the log level printed to LogCat (Android) or the Xcode console (iOS). |
199
205
| **setAlertLevel** | (visualLogLevel: <a href="#loglevel">LogLevel</a>) => void | Set the log level shown to the user as alert dialogs. |
200
206
207
+
201
208
#### OneSignalUserAPI
202
209
203
210
Current-user operations exposed via `OneSignal.User`.
@@ -228,19 +235,22 @@ Current-user operations exposed via `OneSignal.User`.
228
235
| **getExternalId** | () => Promise<string \| null> | Get the external ID set via `login`, or null if the user is anonymous. |
229
236
| **trackEvent** | (name: string, properties?: object \| undefined) => Promise<void> | Track a custom event with an optional set of JSON-serializable properties. |
Outcome reporting exposed via `OneSignal.Session`.
@@ -373,6 +397,7 @@ Outcome reporting exposed via `OneSignal.Session`.
373
397
| **addUniqueOutcome** | (name: string) => Promise<void> | <a href="#record">Record</a> a unique outcome with the given name against the current session. |
374
398
| **addOutcomeWithValue** | (name: string, value: number) => Promise<void> | <a href="#record">Record</a> an outcome with the given name and value against the current session. |
375
399
400
+
376
401
#### OneSignalLocationAPI
377
402
378
403
Location permission and sharing exposed via `OneSignal.Location`.
@@ -383,6 +408,7 @@ Location permission and sharing exposed via `OneSignal.Location`.
383
408
| **setShared** | (shared: boolean) => void | Enable or disable sharing the device location with OneSignal. |
384
409
| **isShared** | () => Promise<boolean> | Whether the device location is currently shared with OneSignal. |
385
410
411
+
386
412
#### OneSignalLiveActivitiesAPI
387
413
388
414
Live activity controls exposed via `OneSignal.LiveActivities`. iOS only unless noted.
@@ -396,48 +422,56 @@ Live activity controls exposed via `OneSignal.LiveActivities`. iOS only unless n
396
422
| **setupDefault** | (options?: <a href="#liveactivitysetupoptions">LiveActivitySetupOptions</a> \| undefined) => Promise<void> | Set up the OneSignal default live activity, optionally enabling pushToStart/pushToUpdate. |
397
423
| **startDefault** | (activityId: string, attributes: <a href="#record">Record</a><string, unknown>, content: <a href="#record">Record</a><string, unknown>) => Promise<void> | Start a live activity backed by the OneSignal default attributes type. |
The setup options for `OneSignal.LiveActivities.setupDefault`.
440
474
441
-
<code>{ /** _ When true, OneSignal will listen for pushToStart tokens for the `OneSignalLiveActivityAttributes` structure. _/ enablePushToStart: boolean; /** _ When true, OneSignal will listen for pushToUpdate tokens for each start live activity that uses the _ `OneSignalLiveActivityAttributes` structure. \*/ enablePushToUpdate: boolean; }</code>
475
+
<code>{ /** * When true, OneSignal will listen for pushToStart tokens for the `OneSignalLiveActivityAttributes` structure. */ enablePushToStart: boolean; /** * When true, OneSignal will listen for pushToUpdate tokens for each start live activity that uses the * `OneSignalLiveActivityAttributes` structure. */ enablePushToUpdate: boolean; }</code>
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@onesignal/capacitor-plugin",
3
-
"version": "1.0.6",
3
+
"version": "1.1.0",
4
4
"description": "OneSignal is a high volume Push Notification service for mobile apps. This is the pure Capacitor plugin for OneSignal, providing push notifications, in-app messaging, and more.",
0 commit comments