Skip to content

getditto/demoapp-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ditto Chat

Internet-less cross platform chat application

This chat room demo showcases public and private chat rooms using Ditto.

Powered by Ditto.

For support, please contact Ditto Support (support@ditto.live).

Compatible with Android Automotive OS (AAOS)

Features

Public chat - general

  • Automatically join a public chat room with all nearby connected devices

Multiple public chat rooms

  • Create new public chat rooms that anyone can browse and join

Private chat rooms

  • Create private chat rooms and invite others to join by sharing a QR code

File attachments

  • Inclue file attachments in chat messages

Delete and edit sent messages

  • Delete or edit chat messages after they have already been sent

Setup

Create an app in the Ditto Cloud Portal - https://portal.ditto.live

iOS

  1. Run the following command in the root directory of the iOS app:
cp .env.template .env
  1. Open .env in a text editor or IDE such as VSCode and add the following environment variables, substituting your own values from the portal (.env will not show up in Xcode and is not to be mistaken for Env.swift)
DITTO_APP_ID=replace_with_your_app_id
DITTO_PLAYGROUND_TOKEN=replace_with_your_playground_token
DITTO_WEBSOCKET_URL=replace_with_your_websocket_url
  1. Open the app project on Xcode and clean (Command + Shift + K)
  2. Navigate to the project Signing & Capabilities tab and modify the Team and Bundle Identifier settings to your Apple developer account credentials to provision building to your device
  3. Build the project (Command + B) (This will generate the Env.swift)

Android

In the root directory of the Android app, create a new file env.properties and add the following environment variables, substituting your own values from the portal:

DITTO_APP_ID = replace_with_your_app_id
DITTO_PLAYGROUND_TOKEN = replace_with_your_playground_token
DITTO_WEBSOCKET_URL = replace_with_your_websocket_url

License

MIT

About

Chat demo for Android and iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 12