Sync Phonebook Contact
#
Sync Contactwarning
It will be only applicable for mobile number registration and contact book synchronization.
If mobile number is used as a primary id for communication in chat sdk then there has to be sync between user and server. The following code block initiate the contact sync and let the user communicate with their contacts who uses the client app too.
Note : In order to sync mobile contacts need to enable
enableMobileNumberLogin
inMirrorfly.initializeSDK()
- Dart
- Response
Argument | Type | Description |
---|---|---|
IS_FIRST_TIME | boolean | true for first time and false after when synchronising contacts |
flyCallback | FlyResponse | callback to observe the action status |
To observe contact sync events you can use this below method.
To avoid unnecessary multiple contact sync calls to get contact sync is already is in progress or not. use this before calling syncContacts
The value of the contactSyncState can also be accessible by directly calling the get value method.