FCM Channel Android is a client library for Push platform that can be used inside Android apps to enable users receive and send messages through Firebase Cloud Messaging channel.
Step 1: Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2: Add the dependency and GMS plugin to your app build.gradle
dependencies {
compile 'com.github.push-flow.fcm-channel-android:fcm-channel:LATEST-VERSION'
}
apply plugin: 'com.google.gms.google-services'
Step 3: Register the media view activity in your manifest file due to messages with media attachments, exactly that way:
<application ...>
...
<activity
android:name="br.com.ilhasoft.support.media.view.MediaViewActivity"
android:theme="@style/Theme.AppCompat.NoActionBar" />
...
</application>
- Interactive messages activity that handles the sending and receiving of messages;
- Notifications of new messages by using Firebase Cloud Messaging;
- Works well with Right-to-left languages;
- Floating chat when users aren't with your app open;