Set up a Firebase Cloud Messaging client app on Flutter
‣
‣
‣
‣
‣
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:
- Open your Firebase project, choose Engage Section from left sidebar and choose Messaging.
- Press Create your first campaign.
- Then choose Firebase Notification messages and press create.
- Write any notification title and text then press Send test message.
- Press Add an FCM registration token and paste the token you copied before.
- Press the add icon after pasting the token.
- Make sure it’s checked like this and press test.
- 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.