FirebaseCloudMessaging

This project demonstrates how to receive push notifications when app is in foreground, background and killed states.

Import Project and not open project while running on you system in android studio.

Create project on firebase with same package name at Firebase console and connect to your application.
This is notification received and notification of foreground service running :

Notification panel screenchot