Use this basic starter template to whip up an Android chat app powered by Mitter in seconds.
-
Open this template project in Android Studio and wait for the sync to finish.
-
Navigate to
MyApp.ktand replace the placeholder texts with your app and user credentials. -
Navigate to
MainActivity.ktinside theactivitypackage and paste your channel ID in thechannelIdvariable.
This starter template contains the following UI XML files:
- 2 shape files inside the
drawablepackage - 2 reusable layouts files inside the
layoutpackage
You can either use these files to quickly have some UI rendered on the screen for your app or you can totally define your own layout if you would like to go pro.
Most of the configuration for FCM has been already done in this template. You do, however, need to setup your FCM profile in the Firebase console, download the google-services.json file and place it in the root folder of your project (MitterAndroidStarter).
Also, you need to use an event bus or anything else similar to that to send the received push messages from the MyApp class to your MainActivity or any other activity or fragment that you need.
For this starter template to work, you need to have a working application on the Mitter platform. You can register for an account and create an application at mitter.io.