README.md
file to run the sample app
Flutter Chat App
pubspec.yaml
file and run pub get
command.pod install
. For apple chip system use rosetta terminal.init()
method initializes the settings required for CometChat. The init()
method takes the below parameters:
setRegion()
method.AppSettings
class allows you to configure three settings:
APP_ID
with your CometChat App ID and region
with your App Region in the above code.
createUser()
method. This method takes an User
object and the Auth Key
as input parameters and returns the created User
object if the request is successful.
UID
and name
are specified as these are mandatory fields to create a user.
Once you have created the user successfully, you will need to log the user into CometChat using the login()
method.
login()
method once your user logs into your app. The login()
method needs to be called only once.