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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,16 @@
2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+
## 1.1.0
6
+
7
+
### Added
8
+
- Introducing a logout mechanism that clears the user's credentials, unregisters the device from receiving push notifications, and stops the session recording.
9
+
- Added a boolean flag to check if the SDK has been configured.
10
+
- Added a boolean flag to check if the user has been identified.
11
+
- Added a boolean flag to check if the session is being recorded.
12
+
- Added a boolean flag to check if the monitoring is enabled.
13
+
- Added a boolean flag to check if the on-demand sessions are enabled.
The identification function should be placed at the appropriate place in your app after you login your user. If you have the user information at app launch, call the function after the `DevRev.configure(context, appID)` method.
230
254
231
-
#### Updating the user
255
+
Use this property to check whether the user has been provided to the SDK:
256
+
- Kotlin
257
+
```kotlin
258
+
DevRev.isUserIdentified
259
+
```
260
+
- Java
261
+
```java
262
+
DevRev.INSTANCE.isUserIdentified();
263
+
```
264
+
265
+
### Updating the user
232
266
You can update the user's information using the following method:
233
267
234
268
- Kotlin
@@ -252,6 +286,19 @@ The function accepts the `DevRev.Identity` ojbect.
252
286
> [!IMPORTANT]
253
287
> The `userID` property can *not* be updated.
254
288
289
+
### Logout
290
+
291
+
You can perform a logout of the current user by calling the following method:
The user will be logged out by clearing their credentials, as well as unregistering the device from receiving push notifications, and stopping the session recording.
You can add custom properties to the session recording to help you understand the context of the session. The properties are defined as a dictionary of string values.
<divclass="copy-popup-wrapper "><spanclass="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
146
+
</span></span></div>
147
+
<div>
148
+
<divclass="title">
149
+
<divclass="platform-hinted " data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content" data-active="" data-togglable=":core:dokkaHtml/release"><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="logout.html"><spanclass="token function">logout</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">context<spanclass="token operator">: </span><ahref="https://developer.android.com/reference/kotlin/android/content/Context.html">Context</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">deviceId<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html">String</a></span></span><spanclass="token punctuation">)</span></div><divclass="brief "><pclass="paragraph">Logs out the current identified user and resets the session. The process will also unregister the user's device from receiving push notifications, and stop any ongoing session recording.</p></div></div></div>
0 commit comments