Question: how does fcm work in android?
Answer: Notification messages, sometimes thought of as “display messages.” These are handled by the FCM SDK automatically. Data messages, which are handled by the client app. Notification messages contain a predefined set of user-visible keys and can contain an optional data payload.