Using the chat module you can create conversations with multiple other attendees. Attendees may be selected during a conversation from all your apps users.
Each user can send messages, including images or files and follow the other users messages in the conversation.
Nothing to configure here.
The chat module provides you the class ConversationModel, a container for a conversation containing all attended users as a list and all messages, covered by the MessageModel class.
At first create or load a user and configure the datastore:
Now load an existing conversation model:
Or create a new conversation model:
After a conversation model exists, messages can be sent.
Finally, all messages can be loaded.
Showcase mobile app for the Android Play Store using apiOmat Backend as a Service
After the chat module was included in our dashboard, we built an app called ChatOMat.
As you should be able to see the full code and learn how easy a interaction with apiOmat is, the full code is available as open source at github. Just download and run!
One notice: The ChatOMat uses my apiOmat account by default. That is, you won't be able to see the data coming in in the dashboard nor extending the functionality with own data models and so on. At best, just
- create your own app at the dashboard
- don't forget to add the chat module,
- download the Android SDK,
- and replace the content of the <em>frontend</em> directory with the classes from the zipped SDK