Lab 2
Lab 2
Prepared by:
Ashraf Mohey
What is “Firebase Cloud messaging”?
Using FCM, you can notify a client app that new email or other data is available to
sync. You can send notification messages to drive user re-engagement and
retention. For use cases such as instant messaging, a message can transfer a
payload of up to 4KB to a client app.
2
How does it work?
An FCM implementation includes two main components for sending and receiving:
A trusted environment such as Cloud Functions for Firebase or an app
server on which to build, target, and send messages.
You can send messages using the RESTFul firebase api or for testing using
firebase cloud messaging console
3
FCM Features
4
Create Firebase Project
5
Configuring Android Project with FCM
6
Send Your First Cloud Message
7
Send Your First Cloud Message
8
Task 2
Your app should be able to successfully receive and display cloud messages as
push notifications
9
Reference
https://firebase.google.com/docs/cloud-messaging/
10