Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Exiting the app causes audio to stop #68

Description

@amrit-citrusleaf

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)

Activity

  1. arodriguezgb commented on May 7, 2020

    @arodriguezgb
    Contributor

    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.

  2. amrit-citrusleaf commented on May 13, 2020

    @amrit-citrusleaf
    Author

    @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.

  3. arodriguezgb commented on May 13, 2020

    @arodriguezgb
    Contributor
  4. envisionaps commented on Jul 29, 2020

    @envisionaps

    @amrit-citrusleaf - How did you manage to let the app run in background on backpress?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions