Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play button on A14 notification not working when targeting API 29 #1062

Open
shadow5688 opened this issue Feb 25, 2024 · 2 comments
Open

Play button on A14 notification not working when targeting API 29 #1062

shadow5688 opened this issue Feb 25, 2024 · 2 comments

Comments

@shadow5688
Copy link

Documented behaviour

Music playback should start again when tapping the play button from the notification.

Actual behaviour

Nothing happens.

Runtime error

I don't see any error in the console.

Minimal reproduction project

Official example: main.dart

Reproduction steps

  1. Just change targetSdkVersion in gradle file to 29.
  2. Run on Android 14.
  3. Play anything and pause it.
  4. Try playing again from notification.

Output of flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.8, on macOS 14.1.2 23B92 darwin-arm64,
    locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK version
    33.0.1)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more
      details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup
      for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.86.2)
[✓] Connected device (4 available)
[✓] Network resources

! Doctor found issues in 1 category.```
### Devices exhibiting the bug
This happens only on Android 14
@ryanheise
Copy link
Owner

Just change targetSdkVersion in gradle file to 29.

Why would you target such an old version of Android? If you do that, you won't be allowed to submit your app to the Play Store. As of the 31st of August 2023, new apps must target SDK API level 33 or higher:

https://support.google.com/googleplay/android-developer/answer/11926878

@RomanSoviak
Copy link

@ryanheise I’m experiencing the same issue. My target SDK is 34, but when I run the app on older devices (e.g. Samsung M31 running Android 31), I encounter the problem. Is there any known solution or workaround for running apps with a target SDK of 34 on older devices?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants