FCM Util Android
TerraCore v0
Overview#
FCM Util is a helper module for integrating FCM to your application easier.
Prerequisite#
- You has set up FCM for your app on firebase.
Installation#
Firstly please refer to Teko repository access guide for instruction to setup the environment.
When the environment is ready, add the code below to import FCM Util:
Using Gradle
Add to your project's build.gradle.kts
Usage#
Implement worker for creating a notification when receiving message from FCM#
Initialize NotificationUtil in Application#
Add MessagingService to AndroidManifest file#
Note: If your want to customize the MessagingService class, please create a class that extends BaseMessagingService class and use this class in AndroidManifest instead of MessagingService class.
Now, your app is ready to receive notifications.