SDKsFlutter
Send a friend application
Send a friend application with the OpenIM Flutter SDK.
await OpenIM.iMManager.friendshipManager.addFriend(
userID: 'user_b',
reason: 'Hi, I’m Alex.',
);userID identifies the recipient of the application, and reason is an optional note. A successful Future means that the server received the application; it does not mean the recipient accepted it. For application changes, see Retrieve received friend applications.
Was this page helpful?