# Handle FCM messages on Android

DevFeed: [Handle FCM messages on Android](<https://devfeed.tech/articles/handle-fcm-messages-on-android-16285.md>)

Original publisher: [Read original article](<https://firebase.blog/posts/2018/09/handle-fcm-messages-on-android>)

Author: Jingyu Shi

Published: 2018-09-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Firebase Blog](<https://devfeed.tech/sources/firebase-blog.md>)

Topics: [Firebase](<https://devfeed.tech/topics/firebase.md>), [LineageOS](<https://devfeed.tech/topics/lineageos.md>), [App](<https://devfeed.tech/topics/app.md>), [client](<https://devfeed.tech/topics/client.md>), [payload](<https://devfeed.tech/topics/payload.md>), [Server](<https://devfeed.tech/topics/server.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [cloud-messaging](<https://devfeed.tech/tags/cloud-messaging.md>), [code](<https://devfeed.tech/tags/code.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [payload](<https://devfeed.tech/tags/payload.md>), [server](<https://devfeed.tech/tags/server.md>), [tutorials](<https://devfeed.tech/tags/tutorials.md>)

## AI overview

This tutorial explains how to handle Firebase Cloud Messaging notification and data messages in Android apps. It describes foreground and background notification behavior, message priority, payload limits, callbacks, and when to post notifications or update app content.

## Source excerpt

News, tutorials, and updates from the Firebase team.