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
IDSync is mParticle’s identity framework, enabling our customers to create a unified view of the customer. To read more about IDSync, see [here](https://docs.mparticle.com/guides/idsync/introduction).
459
459
460
-
All IDSync calls require an `Identity Request`.
460
+
IDSync calls accept an optional `Identity Request`. If no request is provided, an empty identity request is used, which mirrors the behavior of the native iOS and Android SDKs.
461
461
462
462
#### IdentityRequest
463
463
@@ -480,7 +480,22 @@ Import the `SuccessResponse` and `FailureResponse` classes to write proper callb
480
480
481
481
#### Identify
482
482
483
-
The following is a full Identify example with error and success handling. You can adapt the following example with `login`, `modify`, and `logout`.
483
+
You can call `identify` without any parameters to identify with the current user's identities:
484
+
485
+
```dart
486
+
mpInstance?.identity
487
+
.identify()
488
+
.then(
489
+
(IdentityApiResult successResponse) =>
490
+
print("Success Response: $successResponse"),
491
+
onError: (error) {
492
+
var failureResponse = error as IdentityAPIErrorResponse;
493
+
print("Failure Response: $failureResponse");
494
+
}
495
+
);
496
+
```
497
+
498
+
Or with an identity request. The following is a full example with error and success handling. You can adapt the following example with `login`, `modify`, and `logout`.
0 commit comments