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
{{ message }}
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
On Android, when you press back buttons multiple times to exit the app, the current playing audio stops with the following log message-
W/FlutterJNI(21594): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: audiofileplayer. Response ID: 0
The notification controls do not work either. Only the seek bar on the notification is updated at each passing second.
Flutter doctor output-
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.17.0, on Mac OS X 10.14.5 18F132, locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions.
[!] Xcode - develop for iOS and macOS (Xcode 11.3.1)
! CocoaPods 1.7.3 out of date (1.8.0 is recommended).
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To upgrade:
sudo gem install cocoapods
[✓] Android Studio (version 3.6)
[!] IntelliJ IDEA Community Edition (version 2017.2.5)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] VS Code (version 1.44.0)
✗ Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (1 available)
With the state of your Flutter Doctor Im even surprised its even running. Try fixing all those issues with flutter doctor and rebuild the app to see what happens.
@arodriguezgb - You're right to be surprised. :) My builds are absolutely fine. In fact, I'm about to release the app. I found a workaround to let the app run in the background on back press.
On Android, when you press back buttons multiple times to exit the app, the current playing audio stops with the following log message-
W/FlutterJNI(21594): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: audiofileplayer. Response ID: 0
The notification controls do not work either. Only the seek bar on the notification is updated at each passing second.
Flutter doctor output-
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.17.0, on Mac OS X 10.14.5 18F132, locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions.
[!] Xcode - develop for iOS and macOS (Xcode 11.3.1)
! CocoaPods 1.7.3 out of date (1.8.0 is recommended).
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To upgrade:
sudo gem install cocoapods
[✓] Android Studio (version 3.6)
[!] IntelliJ IDEA Community Edition (version 2017.2.5)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] VS Code (version 1.44.0)
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (1 available)