-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathreadmdtemp
38 lines (22 loc) · 1.65 KB
/
readmdtemp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Firebase Cloud Messaging Tutorial
Creating an Android Studio Project
As we do always 😛 create a new android studio project. Once the project is created copy the package name from the AndroidManifest.xml file.
Getting a Configuration File
1. Go to firebase console and create a new project. (https://console.firebase.google.com/)
<img src="https://github.com/Hardik8184/firebase_cloud_messaging/blob/master/images/fcm_1.png" alt="Image 1"/>
2. Now put your app name and select your country.
<img src="https://github.com/Hardik8184/firebase_cloud_messaging/blob/master/images/fcm_2.png" alt="Image 1"/>
3. Now click on Add Firebase to Your Android App.
<img src="https://github.com/Hardik8184/firebase_cloud_messaging/blob/master/images/fcm_3.png" alt="Image 1"/>
4. Now you have to enter your projects package name and SHA key and click on ADD APP.
<img src="https://github.com/Hardik8184/firebase_cloud_messaging/blob/master/images/fcm_4.png" alt="Image 1"/>
5. After clicking add app you will get google-services.json file.
<img src="https://github.com/Hardik8184/firebase_cloud_messaging/blob/master/images/fcm_5.png" alt="Image 1"/>
Now you can send Push Notification using Firebase Console
1. Go to firebase console and select the app you created.
2. From the left menu select notification.
3. Click on new message.
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
So thats all for this Firebase Cloud Messaging Tutorial. If any query/suggestion for Firebase Cloud Messaging Tutorial ask freely on
Thanks.