-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
plugin: messagingtype: questionA question where further information is requestedA question where further information is requested
Description
When a notification arrives, it triggers correctly onMessage(and the others), but it doesn't trigger the function call inside it.
_fcm.configure(
onMessage: (Map<String, dynamic> message) async {
print("onMessage: $message"); // this is printed
// static function:
thisWeirdNotification(message['data']); // this is not called
},
...
)
onMessage: {
notification: {title: "yeaah", body: null},
data: {channel_id: "chanel-name", info: "1", click_action: FLUTTER_NOTIFICATION_CLICK}
}
[β] Flutter (Channel master, 1.23.0-8.0.pre.124, on Microsoft Windows [Versione 10.0.19041.508], locale it-IT)
β’ Flutter version 1.23.0-8.0.pre.124 at C:\src\flutter
β’ Framework revision cbf1e135c4 (3 days ago), 2020-10-02 21:57:04 -0700
β’ Engine revision 87a10f240f
β’ Dart version 2.11.0 (build 2.11.0-181.0.dev)
[β] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
β’ Android SDK at C:\Users\_Apoleo\AppData\Local\Android\sdk
β’ Platform android-30, build-tools 30.0.1
β’ Java binary at: C:\Users\_Apoleo\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-1\193.6626763\jre\bin\java
β’ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
β’ All Android licenses accepted.
[β] Android Studio (version 4.0)
β’ Android Studio at C:\Users\_Apoleo\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-1\193.6626763
β’ Flutter plugin version 47.1.1
β’ Dart plugin version 192.8052
β’ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[β] Connected device (1 available)
β’ sdk gphone x86 (mobile) β’ emulator-5554 β’ android-x86 β’ Android 11 (API 30) (emulator)
β’ No issues found!
I am not sure what's happening because the execution truncates without errors, is it suppressing one?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
plugin: messagingtype: questionA question where further information is requestedA question where further information is requested