Logo
    Logo

    Search

    Setup

    Authentication

    Database

    Storage

    Notifications

    In-App Purchases

    Theme

    Intercom Integration

    Components

    Notifications
    Notifications

    Notifications

    Set up a Firebase Cloud Messaging client app on Flutter

    ‣
    iOS Setup
    ‣
    Android Setup
    ‣
    Web setup
    ‣
    MacOS Setup
    ‣
    Install the FCM plugin

    Testing

    There is an easy way to test if notifications work without writing any code by using Firebase. The template has a function to get device token and prints the token to the console. Copy the token and follow these steps:

    1. Open your Firebase project, choose Engage Section from left sidebar and choose Messaging.
    image
    1. Press Create your first campaign.
    image
    1. Then choose Firebase Notification messages and press create.
    image
    1. Write any notification title and text then press Send test message.
    image
    1. Press Add an FCM registration token and paste the token you copied before.
    image
    1. Press the add icon after pasting the token.
    image
    1. Make sure it’s checked like this and press test.
    image
    1. You should see notification log at the IDE console. PLEASE NOTE for MacOS notification might be a little bit late so wait for a few minutes to see on your device.
    Logo