Skip to content

jeffjose/flutter-firebase

Repository files navigation

A starter template for flutter-firebase

flutter-firebase starter template

Setup native splash screen and launcher icons

# For splash screen (config in pubspec.yaml)
flutter pub pub run flutter_native_splash:create

# For launcher icons (config in pubspec.yaml)
flutter pub run flutter_launcher_icons:main

Notes

  1. Rename folder in src/main/{java,kotlin}/com.example/flutter_firebase to src/main/{java,kotlin}/YOUR_PACKAGE_NAME
  2. Register the app in Firebase and download google-services.json to android/app and update SHA1 and SHA256 (get previously generated values using
  3. Run yarn icons and yarn splash
  4. Copy logo.png to android/../drawable
  5. Change package name com.example.flutter-firebase in android/..
  6. To test FCM messaging, install fcm-cli, and get the FCM TOKEN from flutter logs after the app loads, and SERVER_KEY from Settings > Cloud Messaging
    fcm send --server-key SERVER_KEY --to TOKEN --notification.title title --notification.body "`date`" --notification.click_action "FLUTTER_NOTIFICATION_CLICK"
    

Acknowledgements

About

flutter-firebase starter template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published