FCM Util Android
TerraCore v0
#
OverviewFCM Util
is a helper module for integrating FCM
to your application easier.
#
Prerequisite- You has set up FCM for your app on firebase.
#
InstallationFirstly 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 fileNote: 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.