A Flutter package for Android, iOS and web to utilize basic Sendbird API functionality to their applications.
To use this package, add the dependency to your pubspec.yaml
file:
dependencies:
flutter:
sdk: flutter
sendbird_chat
- List, Create & Delete users
- List, Create & Delete open channels
- List, Send open channel messages
SendbirdChat chat = SendbirdChat(
applicationId: '', // replace with your application id
apiToken: ''); // replace with your application API token (secondary recommended)
chat.createUser(userId);
chat.createOpenChannel(
name: '<name_of_channel>',
userIds: ['user_id']) // user ids of operators
chat.sendOpenChannelMessage(
channelUrl: '<open_channels_url>', // looks like sendbird_open_channel_XXXX_7c280d5d186be4ebf38a3e77b225040865eea22f
originUserId: '<user_id_of_sender>',
message: '<string_message>')
For help modifying package code, view the plug-in package documentation, a specialized package that includes platform-specific implementation code for Android and/or iOS.
For help getting started with Flutter, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.