You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the app is ended with the back button, background message handler is still working (as expected).
But if the app is started again and switched to background, dart message handler is not called and strange debug messages appear:
Service took too long to process intent: com.google.android.c2dm.intent.RECEIVE App may get closed.
D/FA ( 4909): Application going to the background
W/FlutterJNI( 4909): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: plugins.flutter.io/firebase_messaging_background. Response ID: 1
classCustomPluginRegistrant {
companionobject {
funregisterWith(registry:PluginRegistry) {
if (alreadyRegisteredWith(registry)) {
return;
}
FirebaseMessagingPlugin.registerWith(registry.registrarFor("io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin"))
}
funalreadyRegisteredWith(registry:PluginRegistry): Boolean {
val key =CustomPluginRegistrant::class.java.name
if (registry.hasPlugin(key)) {
returntrue
}
registry.registrarFor(key)
returnfalse
}
}
}
flutter doctor -v:
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Linux, locale de_DE.UTF-8)
• Flutter version 1.12.13+hotfix.8 at /opt/flutter
• Framework revision 0b8abb4724 (5 weeks ago), 2020-02-11 11:44:36 -0800
• Engine revision e1e6ced81d
• Dart version 2.7.0
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/dwalter/Android/Sdk/
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /home/dwalter/Android/Sdk/
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[!] Android Studio (version 3.5)
• Android Studio at /opt/android-studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] IntelliJ IDEA Community Edition (version 2019.3)
• IntelliJ at /opt/idea-IC-193.6494.35
• Flutter plugin version 43.0.3
• Dart plugin version 193.6494.35
Describe the bug
If the app is ended with the back button, background message handler is still working (as expected).
But if the app is started again and switched to background, dart message handler is not called and strange debug messages appear:
Application.kt:
CustomPluginRegistrant.kt:
flutter doctor -v:
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/dwalter/Android/Sdk/
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /home/dwalter/Android/Sdk/
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[!] Android Studio (version 3.5)
• Android Studio at /opt/android-studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] IntelliJ IDEA Community Edition (version 2019.3)
• IntelliJ at /opt/idea-IC-193.6494.35
• Flutter plugin version 43.0.3
• Dart plugin version 193.6494.35
[✓] Connected device (1 available)
• VOG L29 • 22X7N19329008040 • android-arm64 • Android 10 (API 29)
The text was updated successfully, but these errors were encountered: