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
-[Check if the screen is transitioning](#check-if-the-screen-is-transitioning)
@@ -209,23 +210,6 @@ The identification function should be placed appropriately in your app after the
209
210
> [!TIP]
210
211
> The `Identity` structure allows for custom fields in the user, organization, and account traits. These fields must be configured through the DevRev app before they can be utilized. For more information, refer to [Object customization](https://devrev.ai/docs/product/object-customization).
211
212
212
-
#### Identify an anonymous user
213
-
214
-
The anonymous identification method allows you to create an anonymous user with an optional user identifier, ensuring that no other data is stored or associated with the user.
215
-
216
-
- Kotlin
217
-
```kotlin
218
-
DevRev.identifyAnonymousUser(
219
-
userId: String
220
-
)
221
-
```
222
-
- Java
223
-
```java
224
-
DevRev.INSTANCE.identifyAnonymousUser(
225
-
String userId
226
-
);
227
-
```
228
-
229
213
#### Identify an unverified user
230
214
231
215
The unverified identification method identifies users with a unique identifier, but it does not verify their identity with the DevRev backend.
@@ -322,9 +306,6 @@ For example:
322
306
323
307
- Kotlin
324
308
```kotlin
325
-
// Identify an anonymous user without a user identifier.
326
-
DevRev.identifyAnonymousUser("abcd1234")
327
-
328
309
// Identify an unverified user with its email address as a user identifier.
The DevRev SDK automatically tracks user interactions such as taps, swipes, and scrolls. However, in some cases you may want to disable this tracking to prevent sensitive user actions from being recorded.
886
+
887
+
To **temporarily disable** user interaction tracking, use the following method:
For advanced use cases, you can provide a custom masking provider to explicitly specify which regions of the UI should be masked during snapshots.
@@ -1037,6 +1041,55 @@ DevRevObservabilityExtKt.startTimer(DevRev.INSTANCE, "response-time", new HashMa
1037
1041
DevRevObservabilityExtKt.endTimer(DevRev.INSTANCE, "response-time", new HashMap<String, String>().put("id", "task-1337"));
1038
1042
```
1039
1043
1044
+
#### Track handled exceptions
1045
+
1046
+
You can report a handled exception from a catch block using the `sendException` function.
1047
+
This ensures that even if the exception is handled in your app, it will still be logged for diagnostics.
1048
+
1049
+
- Kotlin
1050
+
```kotlin
1051
+
DevRev.sendException(
1052
+
exceptionObj: Throwable,
1053
+
exceptionTag: String
1054
+
)
1055
+
```
1056
+
1057
+
- Java
1058
+
```java
1059
+
DevRevObservabilityExtKt.sendException(
1060
+
DevRev.INSTANCE,
1061
+
Throwable exceptionObj,
1062
+
String exceptionTag
1063
+
);
1064
+
```
1065
+
1066
+
For example:
1067
+
1068
+
- Kotlin
1069
+
```kotlin
1070
+
try {
1071
+
// Your code that may produce an exception
1072
+
} catch (e: Throwable) {
1073
+
DevRev.sendException(
1074
+
exceptionObj = e,
1075
+
exceptionTag = "login-failure"
1076
+
)
1077
+
}
1078
+
```
1079
+
1080
+
- Java
1081
+
```java
1082
+
try {
1083
+
// your code that may throw
1084
+
} catch (Throwable e) {
1085
+
DevRevObservabilityExtKt.sendException(
1086
+
DevRev.INSTANCE,
1087
+
e,
1088
+
"login-failure"
1089
+
);
1090
+
}
1091
+
```
1092
+
1040
1093
#### Track screens
1041
1094
1042
1095
The DevRev SDK offers automatic screen tracking to help you understand how users navigate through your app. Although activities and fragments are automatically tracked, you can manually track screens using the following method:
@@ -1240,7 +1293,7 @@ public class MyFirebaseMessagingService extends FirebaseMessagingService {
1240
1293
**Solution**: The DevRev SDK reports all errors using Android's logging utility. Lookfor error messages inAndroidStudio's Logcat after applying `DEVREV SDK` filter.
1241
1294
1242
1295
- **Issue**: Support chat won't show.
1243
-
**Solution**:Ensure you have correctly called one of the identification methods: `DevRev.identifyUnverifiedUser(...)`, `DevRev.identifyVerifiedUser(...)`, or `DevRev.identifyAnonymousUser(...)`.
1296
+
**Solution**:Ensure you have correctly called one of the identification methods: `DevRev.identifyUnverifiedUser(...)`or `DevRev.identifyVerifiedUser(...)`.
1244
1297
1245
1298
-**Issue**:Not receiving push notifications.
1246
1299
**Solution**:Ensure that your app is configured to receive push notifications and that your device is registered with the DevRevSDK.
0 commit comments