Browse SDKs · Flutter
SDKsFlutter

Apply to join a group

Apply to join or directly join a group with the OpenIM Flutter SDK.

Copy
await OpenIM.iMManager.groupManager.joinGroup(
  groupID: groupID,
  reason: 'I would like to join the project discussion',
  joinSource: 3,
);

In the pinned version, joinSource uses 2 for an invitation, 3 for search, and 4 for a QR code. When approval is required, a successful Future means only that the application was submitted. Confirm actual membership through onJoinedGroupAdded or another query.