Flutterfire: Flutter heads up notification for Android

Created on 29 Feb 2020  Â·  41Comments  Â·  Source: FirebaseExtended/flutterfire

How can I allow heads up notification to be displayed for Android. I have read a bunch of articles, and I was not able to find a solution. Is this even enabled by the firebase_messaging plugin for Android?

Example issues: https://github.com/flutter/flutter/issues/28932

messaging documentation question

Most helpful comment

@abdulllrashid Thanks, that worked for me, and I had to change 'channelId' to 'android_channel_id' in my php code to make it work. Only problem is there is no sound for heads-up notification.

All 41 comments

Same Issue

I have same issue

Hi @abdullahshaaban
you might want to take a look to this example
or ask on stackoverflow about this issue.

Closing as not an issue with flutterfire itself
if you disagree please write in the comments and I will reopen it
Thank you

Hi @iapicca ,

It seems to be an issue with flutterfire itself. The heads up notification is not displayed for Android. The example you had shared above is for an iOS implementation.

Hi @abdullahshaaban
can you please provide your flutter doctor -v ,
your flutter run --verbose,
your pubspec.yaml
and a reproducible minimal code sample.
Thank you

Here you go @iapicca !

Code sample (I am just using a basic example):

_firebaseMessaging.configure(
      onMessage: (Map<String, dynamic> notification) async {
        setState(() {
          print('test');
          showFloatingFlushbar(context, "test");
          print("onMessage");
        });
      },
      onLaunch: (Map<String, dynamic> notification) async {
        setState(() {
          print("onLaunch");
        });
      },
      onResume: (Map<String, dynamic> notification) async {
        setState(() {
          print("onResume");
        });
      },
    );

Pubspec.yaml

name: diary_app
description: A new Flutter project.


version: 2.1.0

environment:
  sdk: ">=2.5.2 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^0.1.2
  provider: ^4.0.0
  firebase_messaging: ^6.0.9
  flushbar: ^1.9.1
  google_sign_in: ^4.1.1
  package_info: ^0.4.0+6
  firebase_auth: ^0.15.4
  cloud_firestore: ^0.13.4
  modal_progress_hud: ^0.1.3
  font_awesome_flutter: ^8.5.0

dev_dependencies:
  flutter_test:
    sdk: flutter

flutter:

uses-material-design: true`

Flutter Doctor -v:

[√] Flutter (Channel beta, v1.14.6, on Microsoft Windows [Version 10.0.18362.657], locale en-US)
    • Flutter version 1.14.6 at C:\flutter
    • Framework revision fabeb2a16f (6 weeks ago), 2020-01-28 07:56:51 -0800
    • Engine revision c4229bfbba
    • Dart version 2.8.0 (build 2.8.0-dev.5.0 fc3af737c7)


[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\abdul\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[!] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] VS Code (version 1.42.1)
    • VS Code at C:\Users\abdul\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.8.1

[√] Connected device (2 available)
    • Chrome     • chrome     • web-javascript • Google Chrome 80.0.3987.122
    • Web Server • web-server • web-javascript • Flutter Tools

! Doctor found issues in 2 categories.

flutter run --verbose:

 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=17)
                 A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw:
                 "android.permission.ACCESS_NETWORK_STATE")
               E: uses-permission (line=18)
                 A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
               E: uses-permission (line=19)
                 A: android:name(0x01010003)="com.google.android.c2dm.permission.RECEIVE" (Raw:
                 "com.google.android.c2dm.permission.RECEIVE")
               E: uses-permission (line=20)
                 A: android:name(0x01010003)="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" (Raw:                 "com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE")
               E: application (line=28)
                 A: android:label(0x01010001)="diary_app" (Raw: "diary_app")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=34)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.diary_app.MainActivity" (Raw:
                   "com.example.diary_app.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x400037b4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=48)
                     A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw:
                     "io.flutter.app.android.SplashScreenUntilFirstFrame")
                     A: android:value(0x01010024)=(type 0x12)0xffffffff
                   E: intent-filter (line=52)
                     E: action (line=53)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")        
                     E: category (line=55)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw:
                       "android.intent.category.LAUNCHER")
                   E: intent-filter (line=59)
                     E: action (line=60)
                       A: android:name(0x01010003)="FLUTTER_NOTIFICATION_CLICK" (Raw: "FLUTTER_NOTIFICATION_CLICK")        
                     E: category (line=62)
                       A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw:
                       "android.intent.category.DEFAULT")
                 E: service (line=66)
                   A: android:name(0x01010003)="com.google.firebase.components.ComponentDiscoveryService" (Raw:
                   "com.google.firebase.components.ComponentDiscoveryService")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:directBootAware(0x01010505)=(type 0x12)0xffffffff
                   E: meta-data (line=70)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebaseauth.FlutterFireba                     seAppRegistrar" (Raw:
                     "com.google.firebase.components:io.flutter.plugins.firebaseauth.FlutterFirebaseAppRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=73)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.cloudfirestore.Fl                     utterFirebaseAppRegistrar" (Raw:
                     "com.google.firebase.components:io.flutter.plugins.firebase.cloudfirestore.FlutterFirebaseAppRegistrar                     ")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=76)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFireb                     aseAppRegistrar" (Raw:
                     "com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseAppRegistrar")        
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=79)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebasemessaging.FlutterF                     irebaseAppRegistrar" (Raw:
                     "com.google.firebase.components:io.flutter.plugins.firebasemessaging.FlutterFirebaseAppRegistrar")    
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=82)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistra                     r" (Raw: "com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=85)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:com.google.firebase.firestore.FirestoreRegist                     rar" (Raw: "com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=88)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:com.google.firebase.analytics.connector.inter                     nal.AnalyticsConnectorRegistrar" (Raw:
                     "com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorReg                     istrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=91)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.iid.Registrar" (Raw:  
                     "com.google.firebase.components:com.google.firebase.iid.Registrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                 E: service (line=95)
                   A: android:name(0x01010003)="io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService" (Raw:                   "io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService")
                   E: intent-filter (line=96)
                     E: action (line=97)
                       A: android:name(0x01010003)="com.google.firebase.MESSAGING_EVENT" (Raw:
                       "com.google.firebase.MESSAGING_EVENT")
                 E: service (line=104)
                   A: android:name(0x01010003)="com.google.firebase.messaging.FirebaseMessagingService" (Raw:
                   "com.google.firebase.messaging.FirebaseMessagingService")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   E: intent-filter (line=107)
                     A: android:priority(0x0101001c)=(type 0x10)0xfffffe0c
                     E: action (line=108)
                       A: android:name(0x01010003)="com.google.firebase.MESSAGING_EVENT" (Raw:
                       "com.google.firebase.MESSAGING_EVENT")
                 E: activity (line=112)
                   A: android:theme(0x01010000)=@0x01030010
                   A: android:name(0x01010003)="com.google.firebase.auth.internal.FederatedSignInActivity" (Raw:
                   "com.google.firebase.auth.internal.FederatedSignInActivity")
                   A: android:permission(0x01010006)="com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN"                   (Raw: "com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
                   A: android:launchMode(0x0101001d)=(type 0x10)0x2
                 E: activity (line=119)
                   A: android:theme(0x01010000)=@0x01030010
                   A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.internal.SignInHubActivity" (Raw:   
                   "com.google.android.gms.auth.api.signin.internal.SignInHubActivity")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
                 E: service (line=128)
                   A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.RevocationBoundService" (Raw:       
                   "com.google.android.gms.auth.api.signin.RevocationBoundService")
                   A:
                   android:permission(0x01010006)="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATIO                   N" (Raw: "com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                 E: receiver (line=133)
                   A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdReceiver" (Raw:
                   "com.google.firebase.iid.FirebaseInstanceIdReceiver")
                   A: android:permission(0x01010006)="com.google.android.c2dm.permission.SEND" (Raw:
                   "com.google.android.c2dm.permission.SEND")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   E: intent-filter (line=137)
                     E: action (line=138)
                       A: android:name(0x01010003)="com.google.android.c2dm.intent.RECEIVE" (Raw:
                       "com.google.android.c2dm.intent.RECEIVE")
                 E: provider (line=142)
                   A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw:
                   "com.google.firebase.provider.FirebaseInitProvider")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:authorities(0x01010018)="com.example.diary_app.firebaseinitprovider" (Raw:
                   "com.example.diary_app.firebaseinitprovider")
                   A: android:initOrder(0x0101001a)=(type 0x10)0x64
                 E: receiver (line=148)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementReceiver" (Raw:
                   "com.google.android.gms.measurement.AppMeasurementReceiver")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=153)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"  
                   (Raw: "com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver")
                   A: android:permission(0x01010006)="android.permission.INSTALL_PACKAGES" (Raw:
                   "android.permission.INSTALL_PACKAGES")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   E: intent-filter (line=158)
                     E: action (line=159)
                       A: android:name(0x01010003)="com.android.vending.INSTALL_REFERRER" (Raw:
                       "com.android.vending.INSTALL_REFERRER")
                 E: service (line=163)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementService" (Raw:
                   "com.google.android.gms.measurement.AppMeasurementService")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: service (line=167)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementJobService" (Raw:
                   "com.google.android.gms.measurement.AppMeasurementJobService")
                   A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw:
                   "android.permission.BIND_JOB_SERVICE")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: activity (line=173)
                   A: android:theme(0x01010000)=@0x01030010
                   A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw:
                   "com.google.android.gms.common.api.GoogleApiActivity")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: meta-data (line=178)
                   A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version")    
                   A: android:value(0x01010024)=@0x7f060000
[ +477 ms] executing: C:\Users\abdul\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v
time -t 1
[ +564 ms] Exit code 0 from: C:\Users\abdul\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell -x
logcat -v time -t 1
[  +24 ms] --------- beginning of main
           03-08 22:29:28.832 I/BeaconBle( 5827): Client requested scan, settings=BleSettings [scanMode=ZERO_POWER,        
           callbackType=ALL_MATCHES, reportDelayMillis=0, 1 filters, 0 clients, callingClientName=Places]
[  +71 ms] executing: C:\Users\abdul\AppData\Local\Android\sdk\platform-tools\adb.exe version
[ +133 ms] executing: C:\Users\abdul\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 logcat -v time -T
03-08 22:29:28.832
[ +354 ms] Android Debug Bridge version 1.0.41
                    Version 29.0.5-5949299
                    Installed as C:\Users\abdul\AppData\Local\Android\sdk\platform-tools\adb.exe
[  +56 ms] executing: C:\Users\abdul\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[ +301 ms] Building APK
[ +206 ms] Running Gradle task 'assembleDebug'...
[ +118 ms] gradle.properties already sets `android.enableR8`
[ +127 ms] Using gradle from C:\Users\abdul\OneDrive\Documents\GitHub\diary_app\android\gradlew.bat.
[   +3 ms] C:\Users\abdul\OneDrive\Documents\GitHub\diary_app\android\gradlew.bat mode: 33279 rwxrwxrwx.
[  +31 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +437 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[  +92 ms] openjdk version "1.8.0_202-release"
           OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
           OpenJDK 64-Bit Server VM (build 25.202-b03, mixed mode)
[ +189 ms] executing: [C:\Users\abdul\OneDrive\Documents\GitHub\diary_app\android/]
C:\Users\abdul\OneDrive\Documents\GitHub\diary_app\android\gradlew.bat -Pverbose=true
-Ptarget=C:\Users\abdul\OneDrive\Documents\GitHub\diary_app\lib\main.dart -Ptrack-widget-creation=true
-Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-x64 assembleDebug
[+12739 ms] > Task :app:compileFlutterBuildDebug
[   +9 ms] [ +103 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +231 ms] [ +224 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +46 ms] [        ] fabeb2a16f1d008ab8230f450c49141d35669798
[   +8 ms] [        ] executing: [C:\flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +284 ms] [ +323 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[  +72 ms] [        ] v1.14.6-0-gfabeb2a16
[  +83 ms] [  +27 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +47 ms] [ +254 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[  +38 ms] [        ] origin/beta
[  +34 ms] [        ] executing: [C:\flutter/] git ls-remote --get-url origin
[ +109 ms] [ +160 ms] Exit code 0 from: git ls-remote --get-url origin
[   +6 ms] [        ] https://github.com/flutter/flutter.git
[ +191 ms] [ +241 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[ +200 ms] [ +106 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +2 ms] [        ] beta
[   +1 ms] [  +59 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +5 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[  +49 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[  +42 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[  +30 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[  +44 ms] [   +9 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[  +77 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[  +38 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ +141 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[  +45 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[  +61 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[  +52 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +20 ms] [  +37 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[  +42 ms] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[  +51 ms] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[  +67 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[  +47 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[  +48 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[  +32 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +5 ms] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[  +30 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +5 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[  +64 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[  +29 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[  +40 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +4 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +2 ms] [   +2 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +3 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +47 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +38 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +42 ms] [   +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +39 ms] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[  +38 ms] [ +300 ms] Initializing file store
[  +34 ms] [  +90 ms] Done initializing file store
[+3461 ms] [+4340 ms] Skipping target: kernel_snapshot
[ +203 ms] [ +218 ms] debug_android_application: Starting due to {InvalidatedReason.outputMissing}
[ +998 ms] [ +943 ms] debug_android_application: Complete
[   +3 ms] [  +73 ms] Persisting file store
[  +95 ms] [  +60 ms] Done persisting file store
[   +3 ms] [  +15 ms] build succeeded.
[  +96 ms] [  +68 ms] "flutter assemble" took 6,321ms.
[ +139 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[  +64 ms] > Task :app:preBuild UP-TO-DATE
[  +21 ms] > Task :cloud_firestore:preBuild UP-TO-DATE
[   +3 ms] > Task :cloud_firestore:preDebugBuild UP-TO-DATE
[  +47 ms] > Task :cloud_firestore:checkDebugManifest UP-TO-DATE
[  +38 ms] > Task :cloud_firestore:processDebugManifest UP-TO-DATE
[  +51 ms] > Task :cloud_firestore_web:preBuild UP-TO-DATE
[  +17 ms] > Task :cloud_firestore_web:preDebugBuild UP-TO-DATE
[  +25 ms] > Task :cloud_firestore_web:checkDebugManifest UP-TO-DATE
[   +2 ms] > Task :cloud_firestore_web:processDebugManifest UP-TO-DATE
[   +2 ms] > Task :firebase_auth:preBuild UP-TO-DATE
[  +36 ms] > Task :firebase_auth:preDebugBuild UP-TO-DATE
[ +189 ms] > Task :firebase_auth:checkDebugManifest UP-TO-DATE
[ +123 ms] > Task :firebase_auth:processDebugManifest UP-TO-DATE
[  +67 ms] > Task :firebase_auth_web:preBuild UP-TO-DATE
[  +18 ms] > Task :firebase_auth_web:preDebugBuild UP-TO-DATE
[  +76 ms] > Task :firebase_auth_web:checkDebugManifest UP-TO-DATE
[   +3 ms] > Task :firebase_auth_web:processDebugManifest UP-TO-DATE
[ +153 ms] > Task :firebase_core:preBuild UP-TO-DATE
[   +3 ms] > Task :firebase_core:preDebugBuild UP-TO-DATE
[  +69 ms] > Task :firebase_core:checkDebugManifest UP-TO-DATE
[ +112 ms] > Task :firebase_core:processDebugManifest UP-TO-DATE
[ +253 ms] > Task :firebase_core_web:preBuild UP-TO-DATE
[ +119 ms] > Task :firebase_core_web:preDebugBuild UP-TO-DATE
[ +137 ms] > Task :firebase_core_web:checkDebugManifest UP-TO-DATE
[  +80 ms] > Task :firebase_core_web:processDebugManifest UP-TO-DATE
[ +100 ms] > Task :firebase_messaging:preBuild UP-TO-DATE
[ +182 ms] > Task :firebase_messaging:preDebugBuild UP-TO-DATE
[ +124 ms] > Task :firebase_messaging:checkDebugManifest UP-TO-DATE
[ +114 ms] > Task :firebase_messaging:processDebugManifest UP-TO-DATE
[ +160 ms] > Task :google_sign_in:preBuild UP-TO-DATE
[ +179 ms] > Task :google_sign_in:preDebugBuild UP-TO-DATE
[ +158 ms] > Task :google_sign_in:checkDebugManifest UP-TO-DATE
[  +84 ms] > Task :google_sign_in:processDebugManifest UP-TO-DATE
[ +144 ms] > Task :google_sign_in_web:preBuild UP-TO-DATE
[ +130 ms] > Task :google_sign_in_web:preDebugBuild UP-TO-DATE
[   +3 ms] > Task :google_sign_in_web:checkDebugManifest UP-TO-DATE
[   +2 ms] > Task :google_sign_in_web:processDebugManifest UP-TO-DATE
[  +90 ms] > Task :package_info:preBuild UP-TO-DATE
[  +78 ms] > Task :package_info:preDebugBuild UP-TO-DATE
[  +46 ms] > Task :package_info:checkDebugManifest UP-TO-DATE
[  +66 ms] > Task :package_info:processDebugManifest UP-TO-DATE
[  +35 ms] > Task :app:preDebugBuild UP-TO-DATE
[   +3 ms] > Task :firebase_core_web:compileDebugAidl NO-SOURCE
[  +37 ms] > Task :firebase_auth_web:compileDebugAidl NO-SOURCE
[  +48 ms] > Task :firebase_messaging:compileDebugAidl NO-SOURCE
[  +87 ms] > Task :google_sign_in_web:compileDebugAidl NO-SOURCE
[  +15 ms] > Task :package_info:compileDebugAidl NO-SOURCE
[  +24 ms] > Task :firebase_core:compileDebugAidl NO-SOURCE
[  +95 ms] > Task :cloud_firestore_web:compileDebugAidl NO-SOURCE
[  +52 ms] > Task :cloud_firestore:compileDebugAidl NO-SOURCE
[   +2 ms] > Task :firebase_auth:compileDebugAidl NO-SOURCE
[   +5 ms] > Task :cloud_firestore:packageDebugRenderscript NO-SOURCE
[  +55 ms] > Task :cloud_firestore_web:packageDebugRenderscript NO-SOURCE
[  +84 ms] > Task :firebase_auth:packageDebugRenderscript NO-SOURCE
[  +67 ms] > Task :firebase_auth_web:packageDebugRenderscript NO-SOURCE
[  +48 ms] > Task :firebase_core:packageDebugRenderscript NO-SOURCE
[   +2 ms] > Task :firebase_core_web:packageDebugRenderscript NO-SOURCE
[  +18 ms] > Task :firebase_messaging:packageDebugRenderscript NO-SOURCE
[  +64 ms] > Task :google_sign_in:packageDebugRenderscript NO-SOURCE
[  +14 ms] > Task :google_sign_in_web:packageDebugRenderscript NO-SOURCE
[  +47 ms] > Task :package_info:packageDebugRenderscript NO-SOURCE
[  +51 ms] > Task :app:checkDebugManifest UP-TO-DATE
[  +16 ms] > Task :app:generateDebugBuildConfig UP-TO-DATE
[   +3 ms] > Task :app:compileDebugRenderscript UP-TO-DATE
[   +1 ms] > Task :google_sign_in:compileDebugAidl NO-SOURCE
[   +2 ms] > Task :app:compileDebugAidl NO-SOURCE
[  +31 ms] > Task :app:prepareLintJar UP-TO-DATE
[  +38 ms] > Task :app:generateDebugSources UP-TO-DATE
[   +4 ms] > Task :cloud_firestore:generateDebugBuildConfig UP-TO-DATE
[   +2 ms] > Task :cloud_firestore:compileDebugRenderscript UP-TO-DATE
[   +2 ms] > Task :cloud_firestore:generateDebugResValues UP-TO-DATE
[   +2 ms] > Task :cloud_firestore:generateDebugResources UP-TO-DATE
[  +28 ms] > Task :cloud_firestore:packageDebugResources UP-TO-DATE
[   +2 ms] > Task :cloud_firestore_web:generateDebugResValues UP-TO-DATE
[  +81 ms] > Task :cloud_firestore_web:compileDebugRenderscript UP-TO-DATE
[  +56 ms] > Task :cloud_firestore_web:generateDebugResources UP-TO-DATE
[  +27 ms] > Task :cloud_firestore_web:packageDebugResources UP-TO-DATE
[   +3 ms] > Task :firebase_core:generateDebugResValues UP-TO-DATE
[  +32 ms] > Task :firebase_core:compileDebugRenderscript UP-TO-DATE
[  +27 ms] > Task :firebase_core:generateDebugResources UP-TO-DATE
[   +2 ms] > Task :firebase_core:packageDebugResources UP-TO-DATE
[   +2 ms] > Task :firebase_core_web:generateDebugResValues UP-TO-DATE
[   +2 ms] > Task :firebase_core_web:compileDebugRenderscript UP-TO-DATE
[  +38 ms] > Task :firebase_core_web:generateDebugResources UP-TO-DATE
[  +34 ms] > Task :firebase_core_web:packageDebugResources UP-TO-DATE
[   +4 ms] > Task :firebase_core_web:generateDebugRFile UP-TO-DATE
[   +2 ms] > Task :firebase_core:generateDebugRFile UP-TO-DATE
[   +2 ms] > Task :cloud_firestore_web:generateDebugRFile UP-TO-DATE
[  +38 ms] > Task :cloud_firestore:generateDebugRFile UP-TO-DATE
[   +4 ms] > Task :cloud_firestore:prepareLintJar UP-TO-DATE
[   +2 ms] > Task :cloud_firestore:generateDebugSources UP-TO-DATE
[   +5 ms] > Task :cloud_firestore_web:generateDebugBuildConfig UP-TO-DATE
[   +3 ms] > Task :cloud_firestore_web:prepareLintJar UP-TO-DATE
[  +35 ms] > Task :cloud_firestore_web:generateDebugSources UP-TO-DATE
[   +4 ms] > Task :firebase_core:generateDebugBuildConfig UP-TO-DATE
[   +1 ms] > Task :firebase_core:prepareLintJar UP-TO-DATE
[   +2 ms] > Task :firebase_core:generateDebugSources UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:generateDebugBuildConfig UP-TO-DATE
[  +35 ms] > Task :firebase_core_web:prepareLintJar UP-TO-DATE
[  +23 ms] > Task :firebase_core_web:generateDebugSources UP-TO-DATE
[   +2 ms] > Task :firebase_core_web:javaPreCompileDebug UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:compileDebugJavaWithJavac UP-TO-DATE
[   +2 ms] > Task :firebase_core_web:processDebugJavaRes NO-SOURCE
[   +4 ms] > Task :firebase_core_web:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[  +35 ms] > Task :firebase_core:javaPreCompileDebug UP-TO-DATE
[  +43 ms] > Task :firebase_core:compileDebugJavaWithJavac UP-TO-DATE
[  +29 ms] > Task :firebase_core:processDebugJavaRes NO-SOURCE
[   +2 ms] > Task :firebase_core:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[   +2 ms] > Task :cloud_firestore_web:javaPreCompileDebug UP-TO-DATE
[  +29 ms] > Task :cloud_firestore_web:compileDebugJavaWithJavac UP-TO-DATE
[   +2 ms] > Task :cloud_firestore_web:processDebugJavaRes NO-SOURCE
[   +2 ms] > Task :cloud_firestore_web:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[   +2 ms] > Task :cloud_firestore:javaPreCompileDebug UP-TO-DATE
[  +25 ms] > Task :cloud_firestore:compileDebugJavaWithJavac UP-TO-DATE
[   +2 ms] > Task :cloud_firestore:processDebugJavaRes NO-SOURCE
[   +1 ms] > Task :cloud_firestore:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[   +2 ms] > Task :firebase_auth:compileDebugRenderscript UP-TO-DATE
[  +32 ms] > Task :firebase_auth:generateDebugBuildConfig UP-TO-DATE
[  +35 ms] > Task :firebase_auth:generateDebugResValues UP-TO-DATE
[  +62 ms] > Task :firebase_auth:generateDebugResources UP-TO-DATE
[  +51 ms] > Task :firebase_auth:packageDebugResources UP-TO-DATE
[  +55 ms] > Task :firebase_auth_web:compileDebugRenderscript UP-TO-DATE
[  +36 ms] > Task :firebase_auth_web:generateDebugResValues UP-TO-DATE
[  +34 ms] > Task :firebase_auth_web:generateDebugResources UP-TO-DATE
[   +5 ms] > Task :firebase_auth_web:packageDebugResources UP-TO-DATE
[   +3 ms] > Task :firebase_auth_web:generateDebugRFile UP-TO-DATE
[ +232 ms] > Task :firebase_auth:generateDebugRFile UP-TO-DATE
[   +3 ms] > Task :firebase_auth:prepareLintJar UP-TO-DATE
[   +4 ms] > Task :firebase_auth:generateDebugSources UP-TO-DATE
[  +60 ms] > Task :firebase_auth_web:generateDebugBuildConfig UP-TO-DATE
[  +34 ms] > Task :firebase_auth_web:prepareLintJar UP-TO-DATE
[  +45 ms] > Task :firebase_auth_web:generateDebugSources UP-TO-DATE
[   +5 ms] > Task :firebase_auth_web:javaPreCompileDebug UP-TO-DATE
[  +21 ms] > Task :firebase_auth_web:compileDebugJavaWithJavac UP-TO-DATE
[   +2 ms] > Task :firebase_auth_web:processDebugJavaRes NO-SOURCE
[   +2 ms] > Task :firebase_auth_web:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_auth:javaPreCompileDebug UP-TO-DATE
[        ] > Task :firebase_auth:compileDebugJavaWithJavac UP-TO-DATE
[  +31 ms] > Task :firebase_auth:processDebugJavaRes NO-SOURCE
[  +35 ms] > Task :firebase_auth:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[  +79 ms] > Task :firebase_messaging:generateDebugBuildConfig UP-TO-DATE
[  +42 ms] > Task :firebase_messaging:compileDebugRenderscript UP-TO-DATE
[  +45 ms] > Task :firebase_messaging:generateDebugResValues UP-TO-DATE
[   +2 ms] > Task :firebase_messaging:generateDebugResources UP-TO-DATE
[  +26 ms] > Task :firebase_messaging:prepareLintJar UP-TO-DATE
[   +1 ms] > Task :firebase_messaging:generateDebugSources UP-TO-DATE
[   +2 ms] > Task :firebase_messaging:javaPreCompileDebug UP-TO-DATE
[  +85 ms] > Task :firebase_messaging:packageDebugResources UP-TO-DATE
[  +45 ms] > Task :firebase_messaging:generateDebugRFile UP-TO-DATE
[  +16 ms] > Task :firebase_messaging:compileDebugJavaWithJavac UP-TO-DATE
[   +4 ms] > Task :firebase_messaging:processDebugJavaRes NO-SOURCE
[  +23 ms] > Task :firebase_messaging:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[   +2 ms] > Task :google_sign_in:generateDebugBuildConfig UP-TO-DATE
[   +2 ms] > Task :google_sign_in:generateDebugResValues UP-TO-DATE
[   +2 ms] > Task :google_sign_in_web:compileDebugRenderscript UP-TO-DATE
[  +31 ms] > Task :google_sign_in_web:generateDebugResValues UP-TO-DATE
[   +2 ms] > Task :google_sign_in:compileDebugRenderscript UP-TO-DATE
[   +2 ms] > Task :google_sign_in:generateDebugResources UP-TO-DATE
[  +99 ms] > Task :google_sign_in:packageDebugResources UP-TO-DATE
[  +31 ms] > Task :google_sign_in_web:generateDebugResources UP-TO-DATE
[  +30 ms] > Task :google_sign_in_web:packageDebugResources UP-TO-DATE
[  +35 ms] > Task :google_sign_in_web:generateDebugRFile UP-TO-DATE
[   +4 ms] > Task :google_sign_in:generateDebugRFile UP-TO-DATE
[  +29 ms] > Task :google_sign_in:prepareLintJar UP-TO-DATE
[   +2 ms] > Task :google_sign_in:generateDebugSources UP-TO-DATE
[  +25 ms] > Task :google_sign_in_web:generateDebugBuildConfig UP-TO-DATE
[   +1 ms] > Task :google_sign_in_web:prepareLintJar UP-TO-DATE
[   +2 ms] > Task :google_sign_in_web:generateDebugSources UP-TO-DATE
[  +31 ms] > Task :google_sign_in_web:javaPreCompileDebug UP-TO-DATE
[   +1 ms] > Task :google_sign_in_web:compileDebugJavaWithJavac UP-TO-DATE
[   +1 ms] > Task :google_sign_in_web:processDebugJavaRes NO-SOURCE
[   +4 ms] > Task :google_sign_in_web:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[  +63 ms] > Task :google_sign_in:javaPreCompileDebug UP-TO-DATE
[   +3 ms] > Task :google_sign_in:compileDebugJavaWithJavac UP-TO-DATE
[  +38 ms] > Task :google_sign_in:processDebugJavaRes NO-SOURCE
[   +3 ms] > Task :google_sign_in:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[   +4 ms] > Task :package_info:generateDebugBuildConfig UP-TO-DATE
[  +35 ms] > Task :package_info:generateDebugResValues UP-TO-DATE
[  +56 ms] > Task :package_info:prepareLintJar UP-TO-DATE
[   +3 ms] > Task :package_info:javaPreCompileDebug UP-TO-DATE
[   +7 ms] > Task :package_info:processDebugJavaRes NO-SOURCE
[  +28 ms] > Task :package_info:compileDebugRenderscript UP-TO-DATE
[   +1 ms] > Task :package_info:generateDebugResources UP-TO-DATE
[   +2 ms] > Task :package_info:packageDebugResources UP-TO-DATE
[  +25 ms] > Task :package_info:generateDebugRFile UP-TO-DATE
[   +1 ms] > Task :package_info:generateDebugSources UP-TO-DATE
[   +2 ms] > Task :package_info:compileDebugJavaWithJavac UP-TO-DATE
[   +2 ms] > Task :package_info:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[  +28 ms] > Task :app:javaPreCompileDebug UP-TO-DATE
[  +50 ms] > Task :app:cleanMergeDebugAssets
[   +4 ms] > Task :app:mergeDebugShaders UP-TO-DATE
[  +35 ms] > Task :app:compileDebugShaders UP-TO-DATE
[   +2 ms] > Task :app:generateDebugAssets UP-TO-DATE
[   +1 ms] > Task :cloud_firestore:mergeDebugShaders UP-TO-DATE
[   +3 ms] > Task :cloud_firestore:compileDebugShaders UP-TO-DATE
[   +1 ms] > Task :cloud_firestore:generateDebugAssets UP-TO-DATE
[   +2 ms] > Task :cloud_firestore:packageDebugAssets UP-TO-DATE
[   +4 ms] > Task :cloud_firestore_web:mergeDebugShaders UP-TO-DATE
[  +22 ms] > Task :cloud_firestore_web:compileDebugShaders UP-TO-DATE
[   +2 ms] > Task :cloud_firestore_web:generateDebugAssets UP-TO-DATE
[   +1 ms] > Task :cloud_firestore_web:packageDebugAssets UP-TO-DATE
[   +2 ms] > Task :firebase_auth:mergeDebugShaders UP-TO-DATE
[   +1 ms] > Task :firebase_auth:compileDebugShaders UP-TO-DATE
[        ] > Task :firebase_auth:generateDebugAssets UP-TO-DATE
[  +26 ms] > Task :firebase_auth:packageDebugAssets UP-TO-DATE
[   +1 ms] > Task :firebase_auth_web:mergeDebugShaders UP-TO-DATE
[   +1 ms] > Task :firebase_auth_web:compileDebugShaders UP-TO-DATE
[        ] > Task :firebase_auth_web:generateDebugAssets UP-TO-DATE
[   +1 ms] > Task :firebase_auth_web:packageDebugAssets UP-TO-DATE
[  +18 ms] > Task :firebase_core:mergeDebugShaders UP-TO-DATE
[   +2 ms] > Task :firebase_core:compileDebugShaders UP-TO-DATE
[   +1 ms] > Task :firebase_core:generateDebugAssets UP-TO-DATE
[   +1 ms] > Task :firebase_core:packageDebugAssets UP-TO-DATE
[   +2 ms] > Task :firebase_core_web:mergeDebugShaders UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:compileDebugShaders UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:generateDebugAssets UP-TO-DATE
[        ] > Task :firebase_core_web:packageDebugAssets UP-TO-DATE
[   +1 ms] > Task :firebase_messaging:mergeDebugShaders UP-TO-DATE
[   +1 ms] > Task :firebase_messaging:compileDebugShaders UP-TO-DATE
[   +1 ms] > Task :firebase_messaging:generateDebugAssets UP-TO-DATE
[  +21 ms] > Task :firebase_messaging:packageDebugAssets UP-TO-DATE
[   +2 ms] > Task :google_sign_in:mergeDebugShaders UP-TO-DATE
[   +1 ms] > Task :google_sign_in:compileDebugShaders UP-TO-DATE
[   +2 ms] > Task :google_sign_in:generateDebugAssets UP-TO-DATE
[   +1 ms] > Task :google_sign_in:packageDebugAssets UP-TO-DATE
[   +1 ms] > Task :google_sign_in_web:mergeDebugShaders UP-TO-DATE
[   +1 ms] > Task :google_sign_in_web:compileDebugShaders UP-TO-DATE
[   +2 ms] > Task :google_sign_in_web:generateDebugAssets UP-TO-DATE
[  +38 ms] > Task :google_sign_in_web:packageDebugAssets UP-TO-DATE
[  +17 ms] > Task :package_info:mergeDebugShaders UP-TO-DATE
[   +3 ms] > Task :package_info:compileDebugShaders UP-TO-DATE
[   +1 ms] > Task :package_info:generateDebugAssets UP-TO-DATE
[   +2 ms] > Task :package_info:packageDebugAssets UP-TO-DATE
[   +1 ms] > Task :app:mergeDebugAssets
[  +23 ms] > Task :app:copyFlutterAssetsDebug
[   +1 ms] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[   +3 ms] > Task :app:generateDebugResValues UP-TO-DATE
[   +2 ms] > Task :app:generateDebugResources UP-TO-DATE
[   +1 ms] > Task :app:processDebugGoogleServices UP-TO-DATE
[  +20 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[  +18 ms] > Task :app:processDebugManifest UP-TO-DATE
[   +2 ms] > Task :app:mergeDebugResources UP-TO-DATE
[   +2 ms] > Task :app:processDebugResources UP-TO-DATE
[   +1 ms] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[   +1 ms] > Task :app:compileDebugNdk NO-SOURCE
[   +1 ms] > Task :app:compileDebugSources UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[   +1 ms] > Task :app:signingConfigWriterDebug UP-TO-DATE
[   +1 ms] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[  +18 ms] > Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE
[   +2 ms] > Task :app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE
[   +3 ms] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[   +1 ms] > Task :cloud_firestore:compileDebugNdk NO-SOURCE
[   +1 ms] > Task :cloud_firestore:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :cloud_firestore:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[        ] > Task :cloud_firestore:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :cloud_firestore_web:compileDebugNdk NO-SOURCE
[  +18 ms] > Task :cloud_firestore_web:mergeDebugJniLibFolders UP-TO-DATE
[   +2 ms] > Task :cloud_firestore_web:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :cloud_firestore_web:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_auth:compileDebugNdk NO-SOURCE
[   +1 ms] > Task :firebase_auth:mergeDebugJniLibFolders UP-TO-DATE
[   +1 ms] > Task :firebase_auth:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_auth:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_auth_web:compileDebugNdk NO-SOURCE
[   +1 ms] > Task :firebase_auth_web:mergeDebugJniLibFolders UP-TO-DATE
[   +1 ms] > Task :firebase_auth_web:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_auth_web:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[  +26 ms] > Task :firebase_core:compileDebugNdk NO-SOURCE
[   +1 ms] > Task :firebase_core:mergeDebugJniLibFolders UP-TO-DATE
[   +1 ms] > Task :firebase_core:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[  +30 ms] > Task :firebase_core:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[   +2 ms] > Task :firebase_core_web:compileDebugNdk NO-SOURCE
[   +1 ms] > Task :firebase_core_web:mergeDebugJniLibFolders UP-TO-DATE
[   +2 ms] > Task :firebase_core_web:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[  +21 ms] > Task :firebase_core_web:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_messaging:compileDebugNdk NO-SOURCE
[   +1 ms] > Task :firebase_messaging:mergeDebugJniLibFolders UP-TO-DATE
[   +2 ms] > Task :firebase_messaging:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_messaging:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :google_sign_in:compileDebugNdk NO-SOURCE
[        ] > Task :google_sign_in:mergeDebugJniLibFolders UP-TO-DATE
[   +1 ms] > Task :google_sign_in:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[  +23 ms] > Task :google_sign_in:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :google_sign_in_web:compileDebugNdk NO-SOURCE
[   +2 ms] > Task :google_sign_in_web:mergeDebugJniLibFolders UP-TO-DATE
[   +1 ms] > Task :google_sign_in_web:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :google_sign_in_web:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :package_info:compileDebugNdk NO-SOURCE
[  +22 ms] > Task :package_info:mergeDebugJniLibFolders UP-TO-DATE
[   +2 ms] > Task :package_info:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[   +2 ms] > Task :package_info:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[   +2 ms] > Task :app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[   +2 ms] > Task :app:processDebugJavaRes NO-SOURCE
[   +1 ms] > Task :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[  +14 ms] > Task :app:packageDebug UP-TO-DATE
[   +1 ms] > Task :app:assembleDebug UP-TO-DATE
[  +23 ms] > Task :cloud_firestore:extractDebugAnnotations UP-TO-DATE
[   +2 ms] > Task :cloud_firestore:mergeDebugConsumerProguardFiles UP-TO-DATE
[   +1 ms] > Task :cloud_firestore:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[   +1 ms] > Task :cloud_firestore:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[   +1 ms] > Task :cloud_firestore:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :cloud_firestore:bundleDebugAar UP-TO-DATE
[   +1 ms] > Task :cloud_firestore:compileDebugSources UP-TO-DATE
[        ] > Task :cloud_firestore:assembleDebug UP-TO-DATE
[  +22 ms] > Task :cloud_firestore_web:extractDebugAnnotations UP-TO-DATE
[   +2 ms] > Task :cloud_firestore_web:mergeDebugConsumerProguardFiles UP-TO-DATE
[   +1 ms] > Task :cloud_firestore_web:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[   +2 ms] > Task :cloud_firestore_web:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[   +2 ms] > Task :cloud_firestore_web:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :cloud_firestore_web:bundleDebugAar UP-TO-DATE
[        ] > Task :cloud_firestore_web:compileDebugSources UP-TO-DATE
[   +1 ms] > Task :cloud_firestore_web:assembleDebug UP-TO-DATE
[  +17 ms] > Task :firebase_auth:extractDebugAnnotations UP-TO-DATE
[   +1 ms] > Task :firebase_auth:mergeDebugConsumerProguardFiles UP-TO-DATE
[   +1 ms] > Task :firebase_auth:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[   +2 ms] > Task :firebase_auth:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[   +2 ms] > Task :firebase_auth:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_auth:bundleDebugAar UP-TO-DATE
[   +1 ms] > Task :firebase_auth:compileDebugSources UP-TO-DATE
[   +1 ms] > Task :firebase_auth:assembleDebug UP-TO-DATE
[   +1 ms] > Task :firebase_auth_web:extractDebugAnnotations UP-TO-DATE
[        ] > Task :firebase_auth_web:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :firebase_auth_web:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[  +18 ms] > Task :firebase_auth_web:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[   +2 ms] > Task :firebase_auth_web:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[   +2 ms] > Task :firebase_auth_web:bundleDebugAar UP-TO-DATE
[   +1 ms] > Task :firebase_auth_web:compileDebugSources UP-TO-DATE
[   +1 ms] > Task :firebase_auth_web:assembleDebug UP-TO-DATE
[   +1 ms] > Task :firebase_core:extractDebugAnnotations UP-TO-DATE
[        ] > Task :firebase_core:mergeDebugConsumerProguardFiles UP-TO-DATE
[   +1 ms] > Task :firebase_core:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_core:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_core:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_core:bundleDebugAar UP-TO-DATE
[  +20 ms] > Task :firebase_core:compileDebugSources UP-TO-DATE
[   +2 ms] > Task :firebase_core:assembleDebug UP-TO-DATE
[   +2 ms] > Task :firebase_core_web:extractDebugAnnotations UP-TO-DATE
[   +2 ms] > Task :firebase_core_web:mergeDebugConsumerProguardFiles UP-TO-DATE
[   +2 ms] > Task :firebase_core_web:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[   +3 ms] > Task :firebase_core_web:bundleDebugAar UP-TO-DATE
[  +20 ms] > Task :firebase_core_web:compileDebugSources UP-TO-DATE
[   +2 ms] > Task :firebase_core_web:assembleDebug UP-TO-DATE
[   +1 ms] > Task :firebase_messaging:extractDebugAnnotations UP-TO-DATE
[   +1 ms] > Task :firebase_messaging:mergeDebugConsumerProguardFiles UP-TO-DATE
[   +2 ms] > Task :firebase_messaging:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_messaging:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[   +1 ms] > Task :firebase_messaging:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[  +17 ms] > Task :firebase_messaging:bundleDebugAar UP-TO-DATE
[   +1 ms] > Task :firebase_messaging:compileDebugSources UP-TO-DATE
[   +1 ms] > Task :firebase_messaging:assembleDebug UP-TO-DATE
[   +2 ms] > Task :google_sign_in:extractDebugAnnotations UP-TO-DATE
[   +1 ms] > Task :google_sign_in:mergeDebugConsumerProguardFiles UP-TO-DATE
[   +1 ms] > Task :google_sign_in:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[   +1 ms] > Task :google_sign_in:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[   +1 ms] > Task :google_sign_in:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :google_sign_in:bundleDebugAar UP-TO-DATE
[        ] > Task :google_sign_in:compileDebugSources UP-TO-DATE
[        ] > Task :google_sign_in:assembleDebug UP-TO-DATE
[   +1 ms] > Task :google_sign_in_web:extractDebugAnnotations UP-TO-DATE
[  +22 ms] > Task :google_sign_in_web:mergeDebugConsumerProguardFiles UP-TO-DATE
[   +2 ms] > Task :google_sign_in_web:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[   +1 ms] > Task :google_sign_in_web:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[   +1 ms] > Task :google_sign_in_web:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[   +2 ms] > Task :google_sign_in_web:bundleDebugAar UP-TO-DATE
[   +1 ms] > Task :google_sign_in_web:compileDebugSources UP-TO-DATE
[        ] > Task :google_sign_in_web:assembleDebug UP-TO-DATE
[        ] > Task :package_info:extractDebugAnnotations UP-TO-DATE
[  +22 ms] > Task :package_info:mergeDebugConsumerProguardFiles UP-TO-DATE
[   +1 ms] > Task :package_info:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[   +1 ms] > Task :package_info:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[   +3 ms] > Task :package_info:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[   +2 ms] > Task :package_info:bundleDebugAar UP-TO-DATE
[        ] > Task :package_info:compileDebugSources UP-TO-DATE
[  +21 ms] > Task :package_info:assembleDebug UP-TO-DATE
[   +2 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
[   +2 ms] Use '--warning-mode all' to show the individual deprecation warnings.
[   +1 ms] See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
[   +2 ms] BUILD SUCCESSFUL in 26s
[   +1 ms] 260 actionable tasks: 4 executed, 256 up-to-date
[ +254 ms] Running Gradle task 'assembleDebug'... (completed in 29.4s)
[  +66 ms] calculateSha: LocalDirectory: 'C:\Users\abdul\OneDrive\Documents\GitHub\diary_app\build\app\outputs\apk'/app.apk[  +86 ms] calculateSha: reading file took 83us
[+1233 ms] calculateSha: computing sha took 1231us
[  +18 ms] √ Built build\app\outputs\apk\debug\app-debug.apk.
[  +31 ms] executing: C:\Users\abdul\AppData\Local\Android\sdk\build-tools\29.0.2\aapt dump xmltree
C:\Users\abdul\OneDrive\Documents\GitHub\diary_app\build\app\outputs\apk\app.apk AndroidManifest.xml
[ +126 ms] Exit code 0 from: C:\Users\abdul\AppData\Local\Android\sdk\build-tools\29.0.2\aapt dump xmltree
C:\Users\abdul\OneDrive\Documents\GitHub\diary_app\build\app\outputs\apk\app.apk AndroidManifest.xml
[   +2 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="2.1.0" (Raw: "2.1.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.diary_app" (Raw: "com.example.diary_app")
               A: platformBuildVersionCode=(type 0x10)0x1
               A: platformBuildVersionName="2.1.0" (Raw: "2.1.0")
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x17
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=17)
                 A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw:
                 "android.permission.ACCESS_NETWORK_STATE")
               E: uses-permission (line=18)
                 A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
               E: uses-permission (line=19)
                 A: android:name(0x01010003)="com.google.android.c2dm.permission.RECEIVE" (Raw:
                 "com.google.android.c2dm.permission.RECEIVE")
               E: uses-permission (line=20)
                 A: android:name(0x01010003)="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" (Raw:                 "com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE")
               E: application (line=28)
                 A: android:label(0x01010001)="diary_app" (Raw: "diary_app")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=34)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.diary_app.MainActivity" (Raw:
                   "com.example.diary_app.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x400037b4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=48)
                     A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw:
                     "io.flutter.app.android.SplashScreenUntilFirstFrame")
                     A: android:value(0x01010024)=(type 0x12)0xffffffff
                   E: intent-filter (line=52)
                     E: action (line=53)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")        
                     E: category (line=55)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw:
                       "android.intent.category.LAUNCHER")
                   E: intent-filter (line=59)
                     E: action (line=60)
                       A: android:name(0x01010003)="FLUTTER_NOTIFICATION_CLICK" (Raw: "FLUTTER_NOTIFICATION_CLICK")        
                     E: category (line=62)
                       A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw:
                       "android.intent.category.DEFAULT")
                 E: service (line=66)
                   A: android:name(0x01010003)="com.google.firebase.components.ComponentDiscoveryService" (Raw:
                   "com.google.firebase.components.ComponentDiscoveryService")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:directBootAware(0x01010505)=(type 0x12)0xffffffff
                   E: meta-data (line=70)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebaseauth.FlutterFireba                     seAppRegistrar" (Raw:
                     "com.google.firebase.components:io.flutter.plugins.firebaseauth.FlutterFirebaseAppRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=73)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.cloudfirestore.Fl                     utterFirebaseAppRegistrar" (Raw:
                     "com.google.firebase.components:io.flutter.plugins.firebase.cloudfirestore.FlutterFirebaseAppRegistrar                     ")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=76)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFireb                     aseAppRegistrar" (Raw:
                     "com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseAppRegistrar")        
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=79)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebasemessaging.FlutterF                     irebaseAppRegistrar" (Raw:
                     "com.google.firebase.components:io.flutter.plugins.firebasemessaging.FlutterFirebaseAppRegistrar")    
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=82)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistra                     r" (Raw: "com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=85)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:com.google.firebase.firestore.FirestoreRegist                     rar" (Raw: "com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=88)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:com.google.firebase.analytics.connector.inter                     nal.AnalyticsConnectorRegistrar" (Raw:
                     "com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorReg                     istrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=91)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.iid.Registrar" (Raw:  
                     "com.google.firebase.components:com.google.firebase.iid.Registrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                 E: service (line=95)
                   A: android:name(0x01010003)="io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService" (Raw:                   "io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService")
                   E: intent-filter (line=96)
                     E: action (line=97)
                       A: android:name(0x01010003)="com.google.firebase.MESSAGING_EVENT" (Raw:
                       "com.google.firebase.MESSAGING_EVENT")
                 E: service (line=104)
                   A: android:name(0x01010003)="com.google.firebase.messaging.FirebaseMessagingService" (Raw:
                   "com.google.firebase.messaging.FirebaseMessagingService")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   E: intent-filter (line=107)
                     A: android:priority(0x0101001c)=(type 0x10)0xfffffe0c
                     E: action (line=108)
                       A: android:name(0x01010003)="com.google.firebase.MESSAGING_EVENT" (Raw:
                       "com.google.firebase.MESSAGING_EVENT")
                 E: activity (line=112)
                   A: android:theme(0x01010000)=@0x01030010
                   A: android:name(0x01010003)="com.google.firebase.auth.internal.FederatedSignInActivity" (Raw:
                   "com.google.firebase.auth.internal.FederatedSignInActivity")
                   A: android:permission(0x01010006)="com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN"                   (Raw: "com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
                   A: android:launchMode(0x0101001d)=(type 0x10)0x2
                 E: activity (line=119)
                   A: android:theme(0x01010000)=@0x01030010
                   A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.internal.SignInHubActivity" (Raw:   
                   "com.google.android.gms.auth.api.signin.internal.SignInHubActivity")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
                 E: service (line=128)
                   A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.RevocationBoundService" (Raw:       
                   "com.google.android.gms.auth.api.signin.RevocationBoundService")
                   A:
                   android:permission(0x01010006)="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATIO                   N" (Raw: "com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                 E: receiver (line=133)
                   A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdReceiver" (Raw:
                   "com.google.firebase.iid.FirebaseInstanceIdReceiver")
                   A: android:permission(0x01010006)="com.google.android.c2dm.permission.SEND" (Raw:
                   "com.google.android.c2dm.permission.SEND")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   E: intent-filter (line=137)
                     E: action (line=138)
                       A: android:name(0x01010003)="com.google.android.c2dm.intent.RECEIVE" (Raw:
                       "com.google.android.c2dm.intent.RECEIVE")
                 E: provider (line=142)
                   A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw:
                   "com.google.firebase.provider.FirebaseInitProvider")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:authorities(0x01010018)="com.example.diary_app.firebaseinitprovider" (Raw:
                   "com.example.diary_app.firebaseinitprovider")
                   A: android:initOrder(0x0101001a)=(type 0x10)0x64
                 E: receiver (line=148)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementReceiver" (Raw:
                   "com.google.android.gms.measurement.AppMeasurementReceiver")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=153)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"  
                   (Raw: "com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver")
                   A: android:permission(0x01010006)="android.permission.INSTALL_PACKAGES" (Raw:
                   "android.permission.INSTALL_PACKAGES")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   E: intent-filter (line=158)
                     E: action (line=159)
                       A: android:name(0x01010003)="com.android.vending.INSTALL_REFERRER" (Raw:
                       "com.android.vending.INSTALL_REFERRER")
                 E: service (line=163)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementService" (Raw:
                   "com.google.android.gms.measurement.AppMeasurementService")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: service (line=167)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementJobService" (Raw:
                   "com.google.android.gms.measurement.AppMeasurementJobService")
                   A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw:
                   "android.permission.BIND_JOB_SERVICE")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: activity (line=173)
                   A: android:theme(0x01010000)=@0x01030010
                   A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw:
                   "com.google.android.gms.common.api.GoogleApiActivity")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: meta-data (line=178)
                   A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version")    
                   A: android:value(0x01010024)=@0x7f060000
[ +424 ms] Stopping app 'app.apk' on Android SDK built for x86 64.
[  +23 ms] executing: C:\Users\abdul\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell am force-stop
com.example.diary_app
[ +547 ms] executing: C:\Users\abdul\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell pm list
packages com.example.diary_app
[ +188 ms] package:com.example.diary_app
[   +4 ms] executing: C:\Users\abdul\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell cat
/data/local/tmp/sky.com.example.diary_app.sha1
[ +180 ms] 4bb24d44c9ea8f7d90344b8c5ca68d410db81f92
[   +2 ms] Latest build already installed.
[   +1 ms] Android SDK built for x86 64 startApp
[  +22 ms] executing: C:\Users\abdul\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell am start -a
android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez       
enable-checked-mode true --ez verify-entry-points true com.example.diary_app/com.example.diary_app.MainActivity
[ +527 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.diary_app/.MainActivity (has
extras) }
[   +2 ms] Waiting for observatory port to be available...
[+5333 ms] Observatory URL on device: http://127.0.0.1:43351/lNt2__7Fe9A=/
[   +5 ms] executing: C:\Users\abdul\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 forward tcp:0
tcp:43351
[ +100 ms] 54148
[   +1 ms] Forwarded host port 54148 to device port 43351 for Observatory
[  +30 ms] Connecting to service protocol: http://127.0.0.1:54148/lNt2__7Fe9A=/
[+1949 ms] Successfully connected to service protocol: http://127.0.0.1:54148/lNt2__7Fe9A=/
[   +6 ms] Sending to VM service: getVM({})
[  +76 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Virtual CPU, operatingSystem: android, targetCPU:
x64, version: 2.8.0-dev.5.0.flutter-fc3af737c7 (Fri Jan 24 09:53:26 2020 +0000) on "android_x64", _profilerMode: VM,       
_nativeZoneMemoryUsage: 0, p...
[  +38 ms] Sending to VM service: getIsolate({isolateId: isolates/793221196551883})
[  +43 ms] Sending to VM service: _flutter.listViews({})
[ +112 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7a6b2444ef20, isolate: {type:
@Isolate, fixedId: true, id: isolates/793221196551883, name: main.dart$main-793221196551883, number: 793221196551883}}]}   
[  +15 ms] DevFS: Creating new filesystem on the device (null)
[  +41 ms] Sending to VM service: _createDevFS({fsName: diary_app})
[ +268 ms] Result: {type: FileSystem, name: diary_app, uri:
file:///data/user/0/com.example.diary_app/code_cache/diary_appMYARIS/diary_app/}
[   +2 ms] DevFS: Created new filesystem on the device
(file:///data/user/0/com.example.diary_app/code_cache/diary_appMYARIS/diary_app/)
[  +27 ms] Updating assets
[ +320 ms] Syncing files to device Android SDK built for x86 64...
[   +9 ms] Scanning asset files
[  +35 ms] <- reset
[  +16 ms] Compiling dart to kernel with 0 updated files
[  +46 ms] C:\flutter\bin\cache\dart-sdk\bin\dart.exe
C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter
-Ddart.developer.causal_async_stacks=true --output-dill
C:\Users\abdul\AppData\Local\Temp\flutter_tool.ef648e9c-61c6-11ea-b19d-a87d120463c3\app.dill --packages
C:\Users\abdul\OneDrive\Documents\GitHub\diary_app\.packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root
[  +40 ms] <- compile package:diary_app/main.dart
[  +53 ms] W/ample.diary_ap( 7608): Verification of void com.google.android.gms.measurement.internal.zzdy.zzbl() took
116.383ms
[ +101 ms] W/ample.diary_ap( 7608): Verification of boolean com.google.android.gms.measurement.internal.zzeb.zza(int,
byte[]) took 140.802ms
[ +706 ms] Result: {type: Isolate, id: isolates/793221196551883, name: main, number: 793221196551883, _originNumber:
793221196551883, startTime: 1583731809064, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 0,   
avgCollectionPeriodMillis: 0...
[  +49 ms] I/FA      ( 7608): App measurement is starting up, version: 16250
[   +1 ms] I/FA      ( 7608): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
[   +1 ms] I/FA      ( 7608): To enable faster debug mode event logging run:
[  +26 ms] I/FA      ( 7608):   adb shell setprop debug.firebase.analytics.app com.example.diary_app
[  +57 ms] I/Choreographer( 7608): Skipped 182 frames!  The application may be doing too much work on its main thread.
[ +179 ms] D/EGL_emulation( 7608): eglMakeCurrent: 0x7a6b1cb0e340: ver 3 0 (tinfo 0x7a6b0d506c60)
[ +515 ms] I/OpenGLRenderer( 7608): Davey! duration=3549ms; Flags=1, IntendedVsync=322341359093, Vsync=325374692305,
OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=325387596300, AnimationStart=325387810300,      
PerformTraversalsStart=325388004100, DrawStart=325419076700, SyncQueued=325424484300, SyncStart=325573635500,
IssueDrawCommandsStart=325584181500, SwapBuffers=325763393600, FrameCompleted=326039556300, DequeueBufferDuration=39805000,QueueBufferDuration=5405000,
[ +212 ms] W/ample.diary_ap( 7608): Verification of java.lang.Object
com.google.android.gms.measurement.internal.zzm.createFromParcel(android.os.Parcel) took 113.238ms
[+2425 ms] D/EGL_emulation( 7608): eglMakeCurrent: 0x7a6b1e636be0: ver 3 0 (tinfo 0x7a6b0d4206c0)
[ +473 ms] I/FA      ( 7608): Tag Manager is not found and thus will not be used
[+13286 ms] I/BiChannelGoogleApi( 7608): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms:
com.google.firebase.auth.api.internal.zzaq@deadd5a
[  +98 ms] W/ample.diary_ap( 7608): Verification of com.google.android.gms.common.api.Status
com.google.android.gms.common.api.internal.zac.zaa(android.os.RemoteException) took 134.995ms
[ +485 ms] W/DynamiteModule( 7608): Local module descriptor class for providerinstaller not found.
[ +116 ms] I/DynamiteModule( 7608): Considering local module providerinstaller:0 and remote module providerinstaller:0
[  +26 ms] W/ProviderInstaller( 7608): Failed to load providerinstaller module: No acceptable module found. Local version
is 0 and remote version is 0.
[ +278 ms] I/ample.diary_ap( 7608): The ClassLoaderContext is a special shared library.
[  +59 ms] I/ample.diary_ap( 7608): The ClassLoaderContext is a special shared library.
[  +52 ms] I/Choreographer( 7608): Skipped 30 frames!  The application may be doing too much work on its main thread.
[  +58 ms] I/OpenGLRenderer( 7608): Davey! duration=991ms; Flags=0, IntendedVsync=342471730588, Vsync=342905063904,
OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=342908886600, AnimationStart=342922022400,      
PerformTraversalsStart=343132182300, DrawStart=343389559800, SyncQueued=343454160800, SyncStart=343454668600,
IssueDrawCommandsStart=343454962400, SwapBuffers=343455633800, FrameCompleted=343463578400, DequeueBufferDuration=2408000, 
QueueBufferDuration=2724000,
[  +76 ms] I/ample.diary_ap( 7608): The ClassLoaderContext is a special shared library.
[ +216 ms] Updating files
[ +269 ms] W/ample.diary_ap( 7608): Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
[ +158 ms] V/NativeCrypto( 7608): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 286 native methods...
[ +945 ms] W/ample.diary_ap( 7608): Accessing hidden method
Ljava/security/spec/ECParameterSpec;->getCurveName()Ljava/lang/String; (light greylist, reflection)
[ +437 ms] D/NetworkSecurityConfig( 7608): No Network Security Config specified, using platform default
[  +42 ms] DevFS: Sync finished
[   +7 ms] Syncing files to device Android SDK built for x86 64... (completed in 21,563ms, longer than expected)
[  +76 ms] Synced 1.3MB.
[  +82 ms] Sending to VM service: _flutter.listViews({})
[  +30 ms] I/ProviderInstaller( 7608): Installed default security provider GmsCore_OpenSSL
[ +128 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7a6b2444ef20, isolate: {type:
@Isolate, fixedId: true, id: isolates/793221196551883, name: main.dart$main-793221196551883, number: 793221196551883}}]}   
[   +3 ms] <- accept
[  +29 ms] Connected to _flutterView/0x7a6b2444ef20.
[  +35 ms] Flutter run key commands.
[  +40 ms] r Hot reload. ���
[  +21 ms] R Hot restart.
[  +68 ms] h Repeat this help message.
[  +63 ms] d Detach (terminate "flutter run" but leave application running).
[  +29 ms] q Quit (terminate the application on the device).
[   +1 ms] An Observatory debugger and profiler on Android SDK built for x86 64 is available at:
http://127.0.0.1:54148/lNt2__7Fe9A=/
[  +48 ms] I/ample.diary_ap( 7608): Background concurrent copying GC freed 40695(4MB) AllocSpace objects, 30(1056KB) LOS
objects, 49% free, 2MB/4MB, paused 33.652ms total 875.518ms
[ +768 ms] W/ample.diary_ap( 7608): Verification of void
io.grpc.SynchronizationContext.throwIfNotInThisSynchronizationContext() took 108.393ms
[ +635 ms] D/FirebaseAuth( 7608): Notifying id token listeners about user ( oaUp4TEacBUs0b87YNhLrjH7eXf2 ).
[+1010 ms] W/ample.diary_ap( 7608): Accessing hidden field Ljava/net/Socket;->impl:Ljava/net/SocketImpl; (light greylist,
reflection)
[  +70 ms] W/ample.diary_ap( 7608): Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard;
(light greylist, linking)
[  +42 ms] W/ample.diary_ap( 7608): Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (light
greylist, linking)
[  +11 ms] W/ample.diary_ap( 7608): Accessing hidden field Ljava/io/FileDescriptor;->descriptor:I (light greylist, JNI)
[ +353 ms] W/ample.diary_ap( 7608): Accessing hidden method
Ljava/security/spec/ECParameterSpec;->setCurveName(Ljava/lang/String;)V (light greylist, reflection)
[ +536 ms] W/ample.diary_ap( 7608): Accessing hidden method
Ldalvik/system/BlockGuard;->getThreadPolicy()Ldalvik/system/BlockGuard$Policy; (light greylist, linking)
[   +2 ms] W/ample.diary_ap( 7608): Accessing hidden method Ldalvik/system/BlockGuard$Policy;->onNetwork()V (light
greylist, linking)
[+2327 ms] I/flutter ( 7608): 2020-02-22 00:00:00.000
[+5702 ms] I/ample.diary_ap( 7608): Background concurrent copying GC freed 31854(1690KB) AllocSpace objects, 7(280KB) LOS
objects, 49% free, 2MB/5MB, paused 8.161ms total 135.196ms`

same issue here, no heads up notification in android

@abdullahshaaban @ahmedkheikal @Hetal2011 @abdulllrashid

The problem is that by default from android 8 notifications have to be associated with a notification channel. If notifications are not assigned to the channel, the default channel defined in the android manifest will be used. In the case of not having any android uses a channel that does not have permissions to display the popup.

Here is a gist on how to create a channel:

https://gist.github.com/ErikDohmen/983adc0ad98cd62fbf61c7bf7a476078#file-mainactivit-kt-new-template-without-oncreate

"Note that for Android devices that notifications will only in appear in the tray and won't appear as a toast aka heads-up notification unless things like the priority / importance has been set appropriately. Refer to the Android docs (https://developer.android.com/guide/topics/ui/notifiers/notifications.html#Heads-up) for additional information"

Here you can see the particularities of the IMPORTANCE_HIGH property for NotificationManager.
https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_HIGH

Solution: Create a notification channel with the NotificationManager.IMPORTANCE_HIGH property and in the body of our message to fcm we should include the following property:

image

This is working for me, and before, only in appear in the tray

I hope it will help you.

A greeting.

Hi @jers0 ,

This method did not work for me, I kept receiving an error from my flutter add that an implementation of createChannelGroup is not found. I made sure my additions to the Kotlin file are inside the FlutterActivity class.

Also, I have tried adding a default notification channel using the android manifest file.

android:name="com.google.firebase.messaging.default_notification_channel_id"
android:value="@string/default_notification_channel_id" />

How can I send a heads up notification for Android using the firebase console? I am getting a lot of conflicting results online.

@abdullahshaaban
As soon as I can I will make you an example application and share it on github, and I'll explain how to send notifications from the firebase console.

Greetings

THank you @jers0 ! I am so excited to get this working correctly!

I've been struggling on the same for the past couple of weeks. Went through multiple articles and implementations but no luck. @jers0 Finally I have some hope for a really working solution. My client isn't very happy that I drove his project in Flutter >.<

@abdallahshaban557 @vipinnegi90 For Now use flutter_local_notification to create a notification channel with high priority as shown in docs then use the same channel id to send fcm notification to device that way it can heads up notification.

Trying this out @yogiis98 !

What are the values that I should be using when I post a message using the firebase console to ensure I have a high priority message sent? @yogiis98

image

I am using Admin sdk on nodejs with these arguments, but with firebase console also it should work
{ "token":"fcm", "notification":{ "title":"", "body":"" }, "android":{ "priority":"high", "notification":{ "channelId":"ZONE_ALERT" } }, "data":{ "click_action":"FLUTTER_NOTIFICATION_CLICK" } }
But make sure you use flutter_local_notifications to create channel and you have to create a notification by using show method in your app once like when the person installs the app and starts it. otherwise notification channel will not be created.

@yogiis98 Is firebase_messaging package required if using flutter_local_notifications?
My current implementation at the moment is :

void notificationListener() {
    _firebaseMessaging.configure(
      onMessage: (Map<String, dynamic> message) async {
        // actions
      },
      onResume: (Map<String, dynamic> message) async {
        // actions
      },
      onLaunch: (Map<String, dynamic> message) async {
        // actions
      },);
  }

If yes, then isn't it going to create two notification in Notification tray?
Do I need to call show() in one of the above methods?
Could you please show an example of your implementation? I guess our use cases are similar. I am creating notification from the server using PHP and want to display heads up notification.
I'm sorry for all these questions, I'm just new on flutter and implementing notification first time.

@iapicca
Is there any roadmap on firebase_messaging to support creating channels from Dart?
We need to get heads-up notification working on Android for background messages.
I’m trying all possible options but unable to make it working. I use flutter 1.17.1

@yogiis98
Help on heads-up notification on Android with both firebase_messaging and flutter_local_notifications packages installed.
I would need your help with your workaround by using flutter_local_notifications to create a notification channel.
I’m trying all options but not luck to make it working. I’m using flutter 1.17.1

Here’s my code to create a channel with flutter_local_notifications:

Future<void> _createNotificationChannel() async {
    var androidNotificationChannel = AndroidNotificationChannel(
      'ZONE_ALERT', 
      'ZONE_ALERT',
      'ZONE_ALERT',
    );
    await flutterLocalNotificationsPlugin
        .resolvePlatformSpecificImplementation<
            AndroidFlutterLocalNotificationsPlugin>()
        ?.createNotificationChannel(androidNotificationChannel);

    await showDialog<void>(
        context: context,
        builder: (BuildContext context) {
          return AlertDialog(
            content: Text(
                'Channel with name \"${androidNotificationChannel.name}\" created'),
            actions: [
              FlatButton(
                child: Text('OK'),
                onPressed: () {
                  Navigator.of(context).pop();
                },
              ),
            ],
          );
       }
    );
  }

Then I run this JSON with FCM HTTP v1 (i.e. not the legacy one) in POSTMAN:

{
  "message" : {
    "token" : "<DEVICE_TOKEN>",
    "android": {
        "notification": {
            "title" : "Adroid title",
             "body": "Android body",
            "channel_id" : "ZONE_ALERT",
            "notification_priority" : "PRIORITY_MAX",
            "visibility" : "PUBLIC"
            }
        }
    }
}

For background notifications, I only get an icon in the bar but no way to see a heads-up notification.
Could you please share your code how you create a channel via flutter_local_notifications?

@angelocapone

Hello, the problem is that you are creating a notification channel without assigning priority or importance to the channel. You are only creating a notification channel, and by default a notification channel, its importance / priority is DEFAULT and it will only generate sound.

image

image

Here are some examples on GitHub from the flutter_local_notificacions library.

https://github.com/MaikuB/flutter_local_notifications/blob/c34ae54ce50f90c51c82a47e8a70889c25d8ef22/flutter_local_notifications/example/lib/main.dart

Once you have the notification channel created, it is not necessary that the notifications be of data type and emit them through flutter_local_notification, if you have the notification channel created with the priority / importance HIGH, sending a notification of type PUSH through that channel will appear on the device.

@jers0
Excellent, it works now!
I‘ve spent so many days and nights on this...
MANY THANKS!

@angelocapone

I'm so glad that it worked for you.

I promised @abdallahshaban557 @vipinnegi90 that I would give them an example code, but I currently have a very high workload, maybe you could finally put your code so that they can see it and so maybe it will help them.

A greeting!

@angelocapone the code snippet would be so much appreciated! I would also love to get a link on how to get HTTP FCM v1 setup - since I have been using the console just to test heads up notification.

@abdallahshaban557
sure, I will provide all the code snippet and POSTMAN setup with FCM HTTP v1. Just give me some time to complete my current testing to make sure all works.

@abdallahshaban557
For now, please have a look to my Postman setup.
1
2
3

To get a short-lived OAuth 2.0 access token derived from a service account:

  1. Go to https://developers.google.com/oauthplayground/
  2. Select Firebase Cloud Messaging API v1
  3. Type the following into scopes field, then click Authorize APIs:
    email, https://www.googleapis.com/auth/firebase.messaging

You will get an "access_token" valid for a short time. Use this in Postman as Bearer Token.

Later on I will provide some code snipped on the flutter side.

@abdallahshaban557
here's a code snippet to create a notification Channel with the flutter_local_notifications package. I've placed it in main.dart

import 'package:flutter_local_notifications/flutter_local_notifications.dart';
...

  @override
  void initState() {
    super.initState();
    _createNotificationChannel();
  }

  Future<void> _createNotificationChannel() async {
    var androidNotificationChannel = AndroidNotificationChannel(
      '91512',  // channel ID
      'Your Channel name',    // channel name
      'Your Channel description', //channel description
       importance: Importance.High,
    );
    await flutterLocalNotificationsPlugin
        .resolvePlatformSpecificImplementation<
            AndroidFlutterLocalNotificationsPlugin>()
        ?.createNotificationChannel(androidNotificationChannel);
  }

@angelocapone - my postman is all setup now! Thank you for that. I am receiving notifications successfully including heads up notification! FINALLY! I am so excited! Thank you very much!

@abdallahshaban557
glad we both sorted this problem.

@abdallahshaban557
here's a code snippet to create a notification Channel with the flutter_local_notifications package. I've placed it in main.dart

import 'package:flutter_local_notifications/flutter_local_notifications.dart';
...

  @override
  void initState() {
    super.initState();
    _createNotificationChannel();
  }

  Future<void> _createNotificationChannel() async {
    var androidNotificationChannel = AndroidNotificationChannel(
      '91512',  // channel ID
      'Your Channel name',    // channel name
      'Your Channel description', //channel description
       importance: Importance.High,
    );
    await flutterLocalNotificationsPlugin
        .resolvePlatformSpecificImplementation<
            AndroidFlutterLocalNotificationsPlugin>()
        ?.createNotificationChannel(androidNotificationChannel);
  }

can you guys help me out,im using flutter local notifications and my backgroundmessage handle is not being called to call _shownotifications method in which im assigning ID and importance

@angelocapone - my postman is all setup now! Thank you for that. I am receiving notifications successfully including heads up notification! FINALLY! I am so excited! Thank you very much!

can you share your source code please

@angelocapone Hi, i was wondering if you you manage to also show heads up in the onresume and onlaunch.. i only made it work on onmessage.. but trying to figure it out but i would highly appreciate if you could share other codes that you did to make it work.

thanks

i managed to show heads up notification on onmessage, onresume and onlaunch.. the only problem now which i cant solve is that the largeicon is not showing on onresume and onlaunch. works perfectly on onmessage. any ideas how to force the notification to show the largeicon?

@abdallahshaban557
glad we both sorted this problem.

So in short,

You add local notifications to your project an implement the code you wrote in the main. You run the app and call it with a postman request and a channel is made? Will this channel always persist for you app, or do you need to do it on every startup of a app?

i managed to show heads up notification on onmessage, onresume and onlaunch.. the only problem now which i cant solve is that the largeicon is not showing on onresume and onlaunch. works perfectly on onmessage. any ideas how to force the notification to show the largeicon?

How did you manage to do this? Could you share the code?

@abdallahshaban557 @brenntech?

@jers0 I tried what @angelocapon did, except for the POSTMAN part as the notification is triggered from the server with PHP backend. Not sure if there is more to the implementation on the flutter side.
Below is my code snippet for the PHP function for sending a push notification, which works except for heads-up.

protected function sendPushNotification($title, $body, $consultId, $consultStatus, $fcm, $msg = 'none')
    {
        $GOOGLE_API_KEY = "----------------------------------------";
        $GOOGLE_GCM_URL = "https://fcm.googleapis.com/fcm/send";
        $fields = [
            'notification' => ['title'=>$title, 'body'=>$body, 'priority' => 'PRIORITY_MAX', 'channelId' => '95647', 'visibility' => 'PUBLIC'],
            'to' => $fcm ,
            'data' => ['click_action'=>'FLUTTER_NOTIFICATION_CLICK', 'sound'=>'default', 'status'=>'done', 'screen'=>'screenA', 'consultId'=>$consultId, 'consultStatus'=>$consultStatus, 'msg'=>$msg]
        ];

        $headers = [
            'Authorization: key=' . $GOOGLE_API_KEY,
            'Content-Type: application/json'
        ];

        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $GOOGLE_GCM_URL);
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($fields));

        $result = curl_exec($ch);
        if($result === FALSE){
            die();
        }
        curl_close($ch);
    }

My implementation of flutter is

import 'package:flutter_local_notifications/flutter_local_notifications.dart';

FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin();

Future<void> _createNotificationChannel() async {
    var androidNotificationChannel = AndroidNotificationChannel(
      '95647',  // channel ID
      'DOCARE_ALERT',    // channel name
      'DOCARE_ALERT', //channel description
      importance: Importance.High,
      enableVibration: true,
    );
    await flutterLocalNotificationsPlugin.resolvePlatformSpecificImplementation<
        AndroidFlutterLocalNotificationsPlugin>()
        ?.createNotificationChannel(androidNotificationChannel);
    print('notification channel created');
}

@vipinnegi90 can u try adding channel id to your manifest file as mention here in the StackOverflow question

@abdulllrashid Thanks, that worked for me, and I had to change 'channelId' to 'android_channel_id' in my php code to make it work. Only problem is there is no sound for heads-up notification.

not fix yet?

So flutter_local_notifications is needed?
not only push notification feature?

@abdallahshaban557
@ahmedkheikal
@Hetal2011

I resolved. finally.
How troublesome.
but I guess easy to fix.

Add flutter_local_notifications plugin
and just add int init function only.

      const AndroidNotificationChannel androidNotificationChannel =
          AndroidNotificationChannel(
        'notification-id',
        'channel name,
        'channel description',
        importance: Importance.Max,
      );
      await flutterLocalNotificationsPlugin
          .resolvePlatformSpecificImplementation<
              AndroidFlutterLocalNotificationsPlugin>()
          ?.createNotificationChannel(androidNotificationChannel);
Was this page helpful?
0 / 5 - 0 ratings