Closed Vishnu798 closed 4 months ago
Provide a link here using one of two options:
What you did was not one of the two options given in the instructions.
I'm closing this as an invalid bug report. This your second invalid bug report, please don't make it a 3rd.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio.
Which API doesn't behave as documented, and how does it misbehave? When i turn off my phone screen the audio is playing perfectly fine. When i double tap on screen, notification tray appears from where I can play and pause, So when i pause mu audio from there it got pause fine, But when i play from there It does not plays from there. I find the same behavior as my app in your example as well.
Minimal reproduction project Provide a link here using one of two options: 1) AndroidManifest.xml :-
2) app main.dart :- void main() async {
await FirebaseCrashlytics.instance.setCrashlyticsCollectionEnabled(true);} // FlutterError.onError = (errorDetails) { // FirebaseCrashlytics.instance.recordFlutterFatalError(errorDetails); // }; // PlatformDispatcher.instance.onError = (error, stack) { // FirebaseCrashlytics.instance.recordError(error, stack, fatal: true); // return true; // }; // FirebaseCrashlytics.instance.crash(); await JustAudioBackground.init( androidNotificationChannelId: 'com.ryanheise.bg_demo.channel.audio', androidNotificationChannelName: 'Audio playback', // androidNotificationOngoing: false, // preloadArtwork: true, androidNotificationClickStartsActivity: true, androidStopForegroundOnPause: false ); await FirebaseMessaging.instance.setForegroundNotificationPresentationOptions( alert: true, badge: true, sound: true, ); runApp( MyApp());
}
To Reproduce (i.e. user steps, not code) Steps to reproduce the behavior:
Error messages
Expected behavior on Play the audio should continue.
Screenshots Unable to play/ continue the song on play tap as show in the above image which shows notification.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Flutter SDK version
Additional context Add any other context about the problem here.