OpenIM Docs β’ OpenIM Server β’ openim-sdk-flutter β’ openim-sdk-core
OpenIM provides an open-source Instant Messaging (IM) SDK for developers, serving as an alternative solution to cloud services like Twilio and Sendbird. With OpenIM, developers can build secure and reliable IM applications similar to WeChat, Zoom, and Slack.
This repository is based on the open-source version of the OpenIM SDK, offering an Flutter IM application. You can use this application as a reference implementation of the OpenIM SDK.
This repository is licensed under the GNU Affero General Public License Version 3 (AGPL-3.0) and is subject to additional terms. Commercial use is prohibited. For more details, see here.
Before you start development, ensure that the following software is installed on your system:
- Operating System: macOS 14.6 or later
- Flutter: Version 3.24.5 (Installation Guide)
- Git: For version control
Additionally, make sure you have deployed the latest version of the OpenIM Server. After deployment, you can compile the project and connect it to your server for testing.
This application supports the following platforms:
Platform | Version | Status |
---|---|---|
iOS | 13.0 and above | β |
Android | minSdkVersion 24 | β |
- Flutter: Ensure your version meets the requirements to avoid dependency issues.
Follow the steps below to set up your local development environment:
-
Clone the repository:
git clone https://github.com/openimsdk/open-im-flutter-demo.git cd open-im-flutter-demo
-
Install dependencies
flutter clean flutter pub get
-
Modify the configuration
If you have not changed the default server ports, update only the _host to your server IP.
static const _host = "your-server-ip or your-domain";
-
Run the application using
flutter run
from the terminal or through your IDE. -
Start developing and testing! π
The open-source version supports one-to-one audio and video calls. You need to first deploy and configure the server. For multi-party audio/video calls or video conferencing, please contact us at contact@openim.io.
This project allows building separate iOS and Android applications with some differences in the process.
- iOS:
flutter build ipa
- Android:
flutter build apk
- The build artifacts will be located in the
build
directory.
Feature Module | Feature | Status |
---|---|---|
Account Features | Phone number registration \ Email registration \ Verification code login | β |
View \ Edit personal information | β | |
Multi-language settings | β | |
Change password \ Forgot password | β | |
Friend Features | Find \ Apply \ Search \ Add \ Delete friends | β |
Accept \ Reject friend requests | β | |
Friend notes | β | |
Allow friend requests or not | β | |
Friend list \ Friend data real-time syncing | β | |
Blocklist | Restrict messages | β |
Real-time syncing of blocklist | β | |
Add \ Remove from blocklist | β | |
Group Features | Create \ Dismiss groups | β |
Apply to join \ Invite to join \ Leave group \ Remove members | β | |
Group name / Avatar changes / Group data updates (notifications, real-time sync) | β | |
Invite members to group | β | |
Transfer group ownership | β | |
Group owner or admin approve join requests | β | |
Search group members | β | |
Message Features | Offline messages | β |
Roaming messages | β | |
Multi-end messages | β | |
Message history | β | |
Message deletion | β | |
Clear messages | β | |
Copy messages | β | |
Typing indicator in single chat | β | |
Do Not Disturb for new messages | β | |
Clear chat history | β | |
New members can view group chat history | β | |
New message reminders | β | |
Text messages | β | |
Image messages | β | |
Video messages | β | |
Emoji messages | β | |
File messages | β | |
Voice messages | β | |
Contact card messages | β | |
Location messages | β | |
Custom messages | β | |
Conversation | Pin conversation | β |
Mark conversation as read | β | |
Mute conversation | β | |
REST API | Authentication management | β |
User management | β | |
Relationship chain management | β | |
Group management | β | |
Conversation management | β | |
Message management | β | |
Webhook | Group callbacks | β |
Message callbacks | β | |
Push callbacks | β | |
Relationship callbacks | β | |
User callbacks | β | |
Capacity & Performance | 10,000 friends | β |
100,000-member supergroup | β | |
Second-level syncing | β | |
Cluster deployment | β | |
Multi-device kick-out strategy | ||
Online Status | No mutual kick-out across all platforms | β |
Each platform can only log in with one device | β | |
PC, Mobile, Pad, Web, Mini Program each can log in with one device | β | |
PC not mutually kicked, only one device total for other platforms | β | |
Audio/Video Call | One-to-one audio and video calls | β |
File Storage | Supports private Minio deployment | β |
Supports public cloud services COS, OSS, Kodo, S3 | β | |
Push | Real-time online message push | β |
Offline message push, supports Getui, Firebase | β |
For more advanced features, audio/video calls, or video conferences, please contact us at contact@openim.io.
A: Support, follow the system language by default
A: The demo currently supports android and ios.
3. The debug of the android installation package can run, but the release starts with a white screen?
A: The release package of flutter is obfuscated by default. You can use the command: flutter build release --no -shrink. If this command is invalid, you can do the following
Add the following configuration to the release configuration configured in android/app/build.gradle
release {
minifyEnabled false
useProguard false
shrinkResources false
}
A: Add the following rules to the obfuscation rules
-keep class io.openim.**{*;}
-keep class open_im_sdk.**{*;}
-keep class open_im_sdk_callback.**{*;}
A: Because the Demo has removed some cpu architectures, if you want to run it on the emulator, please do the following:
Add in android/build.gradle configuration
ndk {
abiFilters "armeabi-v7a", "x86"
}
A: Please set the CPU architecture to arm64, and then operate as follows
- flutter clean
- flutter pub get
- cd ios
- rm -f Podfile.lock
- rm -rf Pods
- pod install
- Run Archive after connecting to the real device
A: 13.0