Contacts

Flutter contacts

Contacts are exactly what they sound like. They are used to denote other users that you can send messages to and receive messages from.
The contact UI screen with all your added contacts can be accessed from the conversation screen.

Add contacts to Applozic as below:

dynamic user1 = {
      'userId': "user1",
      'displayName': "User 1",
      "metadata": {
        'plugin': "Flutter",
        'platform': "Android"
      }
    };

  dynamic user2 = {
      'userId': "user2",
      'displayName': "User 2",
      "metadata": {
        'plugin': "Flutter",
        'platform': "Android"
      }
    };

  ApplozicFlutter.addContacts([user1, user2])
        .then((value) => print("Contact added successfully: " + value))
        .catchError((e, s) => print("Failed to add contacts: " + e.toString()));

What’s Next

Group Conversations

Did this page help you?