3.4 Push Notification Setup

  • From your firebase console, go to the Project Settings > Cloud Messaging Tab. You need to enable the Cloud Messaging API (Legacy) which is disabled now.
  • Click on the Manage API in Google Cloud Console and go to that page and enable the API.
  • After that, refresh the cloud messaging tab and you see that it is enabled and has a key. Copy that Server Key.
  • Now go to your IDE and open lib/configs/config.dart file and replace the server token that you have just copied. That's it.