An sample android application which includes (FCM)Firebase Cloud Messaging integration to send and receive Push Notification using Topic Based approach.
✔️ Android studio installed in your system.
✔️ Android Device or Emulator to run your app.
✔️ Setup Account on Firebase and integrate app with your Firebase Project.
- You can clone the project from the Topic-Based-Push_Notification Sample repository.
git clone https://github.com/developerspace-samples/Topic-Based-Push-Notification.git
-
Please make sure to create a Firebase Project and set-up with this app. You need to add
google-service.json
file of your Firebase project in yourapp
folder.
For more details please check the below link.
https://firebase.google.com/docs/android/setup -
Please make sure to add Your Firebase Project Server Key in a "key" variable under MyFirebaseMessagingService.kt.
Once the setup is done you can run the project in Android Studio.