Flutter › Push Notifications in Flutter (FCM)

What is Firebase Cloud Messaging, and how does it let you actually send genuine push notifications to a Flutter app running on a user's own device?

Beginner

Answer

Firebase Cloud Messaging, commonly abbreviated as FCM, is Google's own genuinely free cross platform messaging service specifically for sending push notifications and other data messages directly to an app running on a user's own device, and integrating it involves properly setting up the firebase_messaging Flutter package, obtaining a genuinely unique device token for each specific individual installed device, and then using either the Firebase console or your own backend server to actually send a targeted notification directly to that particular specific device using that same unique token.
final fcmToken = await FirebaseMessaging.instance.getToken();
// Send this token to your own backend to properly target this specific device
Real-world example A news app uses Firebase Cloud Messaging to send a breaking news push notification directly to every single one of their subscribed users' own devices, alerting them genuinely instantly the moment a significant story is actually published.

Common follow-ups: What genuinely happens to a device's own FCM token if a user actually reinstalls the app?;What is the specific practical difference between a notification message and a genuinely separate data message in FCM?