Skip to content

RathoreManpreet/flutter_firebase_notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_firebase_notifications

Flutter Firebase Notifications Installation

Getting Started

  1. Setup the firebase console settings

  2. Then Setup the firebase settings in flutter android/build.gradle file

    • classpath 'com.google.gms:google-services:4.3.3'
  3. Then Setup the firebase settings in flutter android/app/build.gradle file

    • defaultConfig add this code multiDexEnabled true
    • apply plugin: 'com.google.gms.google-services'
    • implementation 'com.google.firebase:firebase-analytics:17.5.0'
    • implementation 'com.google.firebase:firebase-messaging:20.2.4'
  4. Install package firebase_messaging for flutter

  5. Add the in AndroidManifest.xml

    <intent-filter>
       <action android:name="FLUTTER_NOTIFICATION_CLICK" />
       <category android:name="android.intent.category.DEFAULT" />
       </intent-filter> 
       ```
    
  6. Add the ##FLUTTER_NOTIFICATION_CLICK and ##click_actions in firebase Additional options (optional)

About

Sample code for flutter firebase notification, cloud messaging

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published