Step-by-step guide to setup FCM Push notifications in flutter android app.
Create a Firebase project in the firebase console
AndroidManifest.xml
Adding google-services.json to your project
Adding Firebase dependencies and plugins
build.gradle
inside dependenciesbuild.gradle
build.gradle
inside dependenciesImplementing push
Token Generation and Notification handled By SDK [Recommended]
Token Generation and Notification handled By Your Application
Add POST_NOTIFICATIONS permission in AndroidManifest.xml if not present already.
Ask notification permission to show push notifications
suprsend.askNotificationPermission
). You can use external package to ask notification permission.