Build and Deploy a Mobile Messaging App with Cordova and Android
Blog post from Stream
Apache Cordova is a development framework that enables cross-platform app creation using web technologies like HTML, CSS, and JavaScript, allowing a single codebase to work on Android, iOS, and browsers, thereby reducing development time and cost. A tutorial demonstrates building a chat application with React and the Stream Messaging API, detailing the necessary software installations such as Node.js, Yarn, Ngrok, and Android SDK. The process involves setting up Android Studio, installing Cordova, and creating a new Cordova project. A React app is bootstrapped with Create React App, and an Express server is configured for user authentication. The tutorial explains exposing the server with Ngrok, building the UI with Stream's React components, and preparing the React app for production. Finally, instructions for deploying the app to an Android device using Cordova are provided, with additional guidance on adapting the app for iOS or Electron and utilizing Stream's documentation for enhancing functionality.