Closed itsmelaxman closed 1 year ago
@itsmelaxman Thanks for the report. I am assuming this is occuring on Android ? If so, According to the documentation:
On Android, if the user force-quits the app from device settings, it must be manually reopened for messages to start working.
Yes, this problem is occurring on Android. Despite diligently following the documentation, which states that manually reopening the app after force-quitting from the device settings should resolve the messaging issue, I'm still encountering the same problem.
It seems that the app isn't automatically opening when terminated or closed from the device settings, preventing the messaging functionality from working properly.
Thanks for the update. Can you take a look at plugin example and run on Android and see if using it, you still get same behavior or not ?
Hey @itsmelaxman. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
I apologize for the delay in providing an update on the issue. I have looked into the problem today, and I encountered an error while trying to run the plugin example on Android. The error message states:
"Launching lib/main.dart on RMX3063 in debug mode... package identifier or launch activity not found. Please check /home/edigitalnepal/Videos/github/flutterfire-master/packages/firebase_messaging/firebase_messaging/example/android/app/src/main/AndroidManifest.xml for errors. No application found for TargetPlatform.android_arm64. Is your project missing an android/app/src/main/AndroidManifest.xml? Consider running 'flutter create .' to create one."
It seems that there may be an issue with the AndroidManifest.xml file or the project setup.
Ok, will check why you are getting the above error. Mean time, can you try using silent notification or data notification and see if using it, you still get same reported behavior or not ?
Hey @itsmelaxman. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@itsmelaxman if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
Bug report
Describe the bug I'm facing an issue where the app doesn't navigate to the desired screen when it is killed or on home. The navigation works fine when the app is in the foreground, but it fails to navigate when it is completely closed or not in focus.
Steps to reproduce
Expected behavior
The app should navigate to the appropriate screen when a notification is received or an action is performed, regardless of whether the app is in the foreground, background, or completely closed. The app fails to navigate when it is completely closed or switched to another app. No error or exception is thrown.
Sample project
main.dart file
notification_service.dart
Additional Information:
Flutter version: 3.7.10 Device OS: Ubuntu 23.04 Dependencies and versions: [firebase_messaging: ^14.6.1, flutter_local_notifications: ^14.1.0]
Flutter doctor
Click To Expand
``` [!] Flutter (Channel unknown, 3.7.10, on Ubuntu 23.04 6.2.0-23-generic, locale en_US.UTF-8) ! Flutter version 3.7.10 on channel unknown at /home/edigitalnepal/flutter Currently on an unknown channel. Run `flutter channel` to switch to an official channel. If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install. ! Unknown upstream repository. Reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install. • Framework revision 4b12645012 (3 months ago), 2023-04-03 17:46:48 -0700 • Engine revision ec975089ac • Dart version 2.19.6 • DevTools version 2.20.1 • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades. [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at /home/edigitalnepal/Android/Sdk • Platform android-33, build-tools 33.0.0 • Java binary at: /home/edigitalnepal/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/222.4459.24.2221.9971841/jbr/bin/java • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694) • All Android licenses accepted. [✓] Chrome - develop for the web • Chrome at google-chrome [✓] Linux toolchain - develop for Linux desktop • Ubuntu clang version 15.0.7 • cmake version 3.25.1 • ninja version 1.11.1 • pkg-config version 1.8.1 [✓] Android Studio (version 2022.2) • Android Studio at /home/edigitalnepal/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/222.4459.24.2221.9971841 • Flutter plugin version 74.0.2 • Dart plugin version 222.4582 • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694) [✓] IntelliJ IDEA Ultimate Edition (version 2023.1) • IntelliJ at /home/edigitalnepal/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/231.9011.34 • Flutter plugin version 73.0.2 • Dart plugin version 222.4345.14 [✓] VS Code • VS Code at /snap/code/current • Flutter extension version 3.66.0 [✓] Connected device (3 available) • M2101K6G (mobile) • f7ff74f4 • android-arm64 • Android 13 (API 33) • Linux (desktop) • linux • linux-x64 • Ubuntu 23.04 6.2.0-23-generic • Chrome (web) • chrome • web-javascript • Google Chrome 114.0.5735.133 [✓] HTTP Host Availability • All required HTTP hosts are available ! Doctor found issues in 1 category.```