Full N Final Report
Full N Final Report
Message types
Firebase Notifications is built on Firebase Cloud Use notification messages when you want FCM to
Messaging and shares the same FCM SDK for handle displaying a notification on your client
client development. For testing or for sending app's behalf. Use data messages when you want to
marketing or engagement messages with powerful process the messages on your client app.
built-in targeting and analytics, you can use
Notifications. For deployments with more complex The app server can send a message including both
messaging requirements, FCM is the right choice. notification and data payloads. In such cases, FCM
handles displaying the notification payload, and
the client app handles the data payload.
ABOUT FCM MESSAGES
Note: If you want to send messages consisting of
only custom key-values to an iOS device when the
Firebase Cloud Messaging (FCM) offers a broad
app is in the background, set custom key-value
range of messaging options and capabilities. The
pairs in the data key and
information in this page is intended to help you
set content_available to true.
understand notification messages and data
messages and what you can do with them using Notification messages provide an easy way for
FCM's options. developers to send a user-visible display message
with some predefined keys and optional custom
Some of these options are available only through
key-value pairs. Data payloads include the
the Firebase Cloud Messaging server
developer's custom key-value pairs only, and the
client app must handle the message. You can send For example, here is a JSON-formatted message in
messages that have both notification and data the same IM app as above, where the information
payloads. is encapsulated in the data key and the client app is
expected to interpret the content:
{
Notification messages
"to" :
To send notification messages, set "bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMEx
the notification key with the necessary predefined UdFQ3P1...",
set of key options for the user-visible part of the "data" : {
notification message. For example, here is a "Nick" : "Mario",
JSON-formatted notification message in an IM "body" : "great match!",
app. The user can expect to see a message with the "Room" : "PortugalVSDenmark"
title "Portugal vs. Denmark" and text "great },
match!" on the device: }
didReceiveRemoteNotification: on iOS
onMessageReceived() on Android.
The notification key in the data bundle contains
the notification.
Data messages
Set the data key with your custom key-value pairs
to send a data payload to the client app. Data
messages can have a 4KB maximum payload.
Real time database When a user authenticates to a Firebase app, three
things happen:
Store and sync data with our NoSQL cloud
database. Data is synced across all clients in Information about the user is returned in
realtime, and remains available when your app callbacks on the client device. This
goes offline.The Firebase Realtime Database is a allows you to customize your app's user
cloud-hosted database. Data is stored as JSON and experience for that specific user.
synchronized in realtime to every connected client.
When you build cross-platform apps with our iOS, The user information returned contains
Android, and JavaScript SDKs, all of your clients a uid (a unique ID), which is guaranteed
share one Realtime Database instance and to be distinct across all providers, and to
automatically receive updates with the newest never change for a specific authenticated
data.The Realtime Database provides a flexible, user.
expression-based rules language, called Firebase The value of the auth variable in your
Realtime Database Security Rules, to define how app's Security and firebase
your data should be structured and when data can rules. becomes defined. This variable
be read from or written to. When integrated with isnull for unauthenticated users, but for
Firebase Authentication, developers can define authenticated users it is an object
who has access to what data, and how they can containing the user's unique (auth.uid)
access it. and potentially other data about the user.
This allows you to securely control data
access on a per-user basis.
Cloud messaging
Authentication
Test Lab
Test in the lab, not on your users
Remote Config:
Remote Config is a cloud service that lets you
change the behavior and appearance of your app
without requiring users to download an app
Crash Reporting creates detailed reports of the
update. When using Remote Config, you create in-
errors in your app. Errors are grouped into clusters
app default values that control the behavior and
of similar stack traces and triaged by the severity
appearance of your app. Then, you can later use
of impact on your users. In addition to automatic
the Firebase console to override in-app default
reports, you can log custom events to help capture
values for all app users or for segments of your
the steps leading up to a crash.
userbase.
CONCLUSION AND FUTURE
SCOPE
Firebase isn't just a backend as a service anymore.
References
It's THE developer backend to use for Google Web references
services.It can't be understated how important this
shift is for Google and for Firebase. They provided 1)https://firebase.google.com/docs
a simple and unified platform with so many of the
best Google features packed in.When creating our 2) https://scotch.io/bar-talk/a-look-at-the-
apps, we as developers need to go and grab a
bunch of different services to create what we want.
new-firebase-a-powerful-google-platform
Here are the things that can now be replaced when
creating our apps:
Google Analytics (built into
Firebase for free)
Storage (S3)
Cloud/Realtime Messaging/Notifications
(Pusher)
More