Flutter Getting Started
ConnectyCube helps you implement real-time chat, video chat, push notifications and user authorization to any app with ease - no server side implementation required.
You can concentrate fully on your mobile app development. Our Flutter SDK provides you with many helpful methods to build the chat and video chat from the client side.
This page presents a quick overview of the SDK’s functionalities and logic, then let you go through the easy steps of implementing ConnectyCube in your own app.
ConnectyCube Flutter SDK can be used on the following OS and platforms:
Create ConnectyCube app
Register a FREE ConnectyCube account at https://connectycube.com/signup, then create your 1st app and obtain an app credentials.
These credentials will be used to identify your app.
All users within the same ConnectyCube app can communicate by chat or video chat with each other, across all platforms - iOS, Android, Web, etc.
When building a new app
If you are just starting your app and developing it from scratch, we recommend to use our Code Samples projects.
Download Code Samples
These code samples are ready-to-go apps with an appropriate functionality and simple enough that even novice developers will be able to understand them.
When integrating SDK into existing app
If you already have an app, do the following for integration.
1. Depend on it
Add this to your package's
dependencies: connectycube_sdk: ^x.x.x
x.x.x is a latest version of connectycube_sdk on pub.dev repository.
2. Install it
You can install packages from the command line:
flutter pub get
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Initialize framework with your ConnectyCube application credentials. You can access your application credentials
in ConnectyCube Dashboard:
String appId = ""; String authKey = ""; String authSecret = ""; init(appId, authKey, authSecret);
An additional configs can be passed via
CubeSettings.instance.isDebugEnabled = true; // to enable ConnectyCube SDK logs; CubeSettings.instance.setEndpoints(customApiEndpoint, customChatEndpoint); // to set custom endpoints
Now integrate messaging & calling capabilities
Follow the API guides on how to integrate chat and calling features into your app:
The complete SDK changelog is available on the ConnectyCube pub.dev page.