{"id":23023655,"url":"https://github.com/hardik8184/firebasepushnotification","last_synced_at":"2025-08-14T10:34:17.108Z","repository":{"id":65783647,"uuid":"210560444","full_name":"Hardik8184/FirebasePushNotification","owner":"Hardik8184","description":"Send push notification from server to mobile application.","archived":false,"fork":false,"pushed_at":"2019-09-24T09:12:05.000Z","size":1271,"stargazers_count":13,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-19T13:41:39.191Z","etag":null,"topics":["android","android-application","android-library","firebase-cloud-messaging","firebase-console","firebase-messaging","library","notification-android","notification-api","notifications"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hardik8184.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-24T09:11:30.000Z","updated_at":"2023-03-09T15:11:30.000Z","dependencies_parsed_at":"2023-02-09T21:31:04.482Z","dependency_job_id":null,"html_url":"https://github.com/Hardik8184/FirebasePushNotification","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hardik8184%2FFirebasePushNotification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hardik8184%2FFirebasePushNotification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hardik8184%2FFirebasePushNotification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hardik8184%2FFirebasePushNotification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hardik8184","download_url":"https://codeload.github.com/Hardik8184/FirebasePushNotification/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229821832,"owners_count":18129428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-application","android-library","firebase-cloud-messaging","firebase-console","firebase-messaging","library","notification-android","notification-api","notifications"],"created_at":"2024-12-15T13:14:33.104Z","updated_at":"2024-12-15T13:14:33.608Z","avatar_url":"https://github.com/Hardik8184.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"Firebase Push Notification Tutorial\n\n\u003ch2 style=\"text-align: left;\"\u003e\u003cspan style=\"color: #000000;\"\u003e\u003cstrong\u003eHow Firebase Push Notification works?\u003c/strong\u003e\u003c/span\u003e\u003c/h2\u003e\n\u003cp\u003e\u003cspan style=\"color: #000000;\"\u003eFirebase serves as a module between your server and the devices that will be receiving the push notifications that you create. Your server informs Firebase that a notification has to be sent. Then Firebase does the work behind the scenes to get the notification published.\u003c/span\u003e\u003c/p\u003e\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\n\u003cimg src=\"images/img_7.png\" alt=\"Image 1\"/\u003e\n\n\u003ch2 style=\"text-align: left;\"\u003e\u003cspan style=\"color: #000000;\"\u003e\u003cstrong\u003eHow to integrate FCM into Android Project?\u003c/strong\u003e\u003c/span\u003e\u003c/h2\u003e\n\u003cp\u003e\u003cspan style=\"color: #000000;\"\u003eStep for creating  Firebase Project\u003c/span\u003e\u003c/p\u003e\n\n\u003cp\u003e\u003cspan style=\"color: #000000;\"\u003e\u003cstrong\u003e\u003cem\u003eStep 1:\u003c/em\u003e\u003c/strong\u003e Open Firebase\u003c/span\u003e \u003ca href=\"https://console.firebase.google.com/u/2/?pli=1\"\u003econsole\u003c/a\u003e\u003c/p\u003e\n\n\u003cimg src=\"images/img_1.png\" alt=\"Image 1\"/\u003e\n\n\u003cp\u003e\u003cspan style=\"color: #000000;\"\u003e\u003cem\u003e\u003cstrong\u003eStep 2: \u003c/strong\u003e\u003c/em\u003eClick on Add project and give name to your project and select country. If you have already created a project skip this step.\u003c/span\u003e\u003c/p\u003e\n \n\u003cimg src=\"images/img_2.png\" alt=\"Image 1\"/\u003e\n\n\u003cp\u003e\u003cspan style=\"color: #000000;\"\u003e\u003cem\u003e\u003cstrong\u003eStep 3: \u003c/strong\u003e\u003c/em\u003eThen select “Add Firebase to your Android app”.\u003c/span\u003e\u003c/p\u003e\n \n\u003cimg src=\"images/img_3.png\" alt=\"Image 1\"/\u003e\n\n\u003cp\u003e\u003cspan style=\"color: #000000;\"\u003e\u003cem\u003e\u003cstrong\u003eStep 4: \u003c/strong\u003e\u003c/em\u003eAdd project package id or application id and genrate SHA-1 signatature of your machine.\u003c/span\u003e\u003c/p\u003e\n \n\u003cimg src=\"images/img_4.png\" alt=\"Image 1\"/\u003e\n\n\u003cp\u003e\u003cspan style=\"color: #000000;\"\u003e\u003cem\u003e\u003cstrong\u003eStep 5: \u003c/strong\u003e\u003c/em\u003eDownload google-service.json and put into app module.\u003c/span\u003e\u003c/p\u003e\n \n\u003cimg src=\"images/img_5.png\" alt=\"Image 1\"/\u003e\n\n\u003ch2\u003e\u003cspan style=\"color: #000000;\"\u003e\u003cstrong\u003eHow to generate SHA Key using Android Studio:\u003c/strong\u003e\u003c/span\u003e\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003e\u003cspan style=\"color: #000000;\"\u003eOpen your project into Android studio.\u003c/span\u003e\u003c/li\u003e\n\u003cli\u003e\u003cspan style=\"color: #000000;\"\u003eClick on Gradle tab on right side.\u003c/span\u003e\u003c/li\u003e\n\u003cli\u003e\u003cspan style=\"color: #000000;\"\u003eCollapse :app module -\u0026gt; Tasks -\u0026gt; Android -\u0026gt; signing report.\u003c/span\u003e\u003c/li\u003e\n\u003cli\u003e\u003cspan style=\"color: #000000;\"\u003eSHA-1 will generate. Copy and paste into SHA-1 in firebase console.\u003c/span\u003e\u003c/li\u003e\n\u003c/ol\u003e\n\n\u003cimg src=\"images/img_6.png\" alt=\"Image 1\"/\u003e\n\n\n\u003ch2\u003e\u003cspan style=\"color: #000000;\"\u003e\u003cstrong\u003eHow to integrate Firebase SDK into Android Project?\u003c/strong\u003e\u003c/span\u003e\u003c/h2\u003e\n\u003cp\u003e\u003cem\u003e\u003cstrong\u003e\u003cspan style=\"color: #000000;\"\u003eStep 1:\u003c/span\u003e\u003c/strong\u003e\u003c/em\u003e\u003c/p\u003e\n\u003cp\u003e\u003cspan style=\"color: #000000;\"\u003eAdd below code into \u0026lt;project\u0026gt;/build.gradle file.\u003c/span\u003e\u003c/p\u003e\n\u003cpre class=\"line-numbers\" data-start=\"1\"\u003e\u003ccode class=\"language-markup\"\u003ebuildscript {\n  dependencies {\n    // Add this line\n    classpath 'com.google.gms:google-services:4.3.2'\n  }\n}\u003c/code\u003e\u003c/pre\u003e\n\n\u003cp\u003e\u003cspan style=\"color: #000000;\"\u003e\u003cem\u003e\u003cstrong\u003eStep 2:\u003c/strong\u003e\u003c/em\u003e\u003c/span\u003e\u003c/p\u003e\n\u003cp\u003e\u003cspan style=\"color: #000000;\"\u003eAdd below code into \u0026lt;project\u0026gt; / \u0026lt;app\u0026gt;/build.gradle.\u003cbr /\u003e\n\u003c/span\u003e\u003c/p\u003e\n\u003cpre class=\"line-numbers\" data-start=\"1\"\u003e\u003ccode class=\"language-kotlin\"\u003edependencies {\n  // Add this line\n  implementation 'com.google.firebase:firebase-messaging:20.0.0'\n}\n...\n// Add to the bottom of the file\napply plugin: 'com.google.gms.google-services'\u003c/code\u003e\u003c/pre\u003e\n\n\u003cp\u003e\u003cem\u003e\u003cstrong\u003e\u003cspan style=\"color: #000000;\"\u003eStep 3:\u003c/span\u003e\u003c/strong\u003e\u003c/em\u003e\u003c/p\u003e\n\u003cp\u003e\u003cspan style=\"color: #000000;\"\u003ePress on sync now in the Android Studio.\u003c/span\u003e\u003c/p\u003e\n\n\n\u003cp\u003e\u003ch2\u003e\u003cspan style=\"color: #000000;\"\u003e\u003cstrong\u003eNow you can send Push Notification using Firebase Console\u003c/strong\u003e\u003c/span\u003e\u003c/h2\u003e\u003c/p\u003e\n\n  1. Go to firebase console and select the app you created.\n  2. From the left menu select notification.\n  3. Click on new message.\n  4. Enter message, select single device and paste the token you copied and click on send. The same as I did on the video, and check your device\n  \nSo that's all for this Firebase Cloud Messaging Tutorial. If any query/suggestion for Firebase Cloud Messaging Tutorial ask freely on\nhardikdungrani8@gmail.com\n\nThanks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardik8184%2Ffirebasepushnotification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardik8184%2Ffirebasepushnotification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardik8184%2Ffirebasepushnotification/lists"}