I am currently using [email protected] as my audio player. After closing the application, I noticed that while the audio stopped playing, the playback notification remained visible.
Below is the code snippet from my index.js file which sets up the track player:
const trackSetup = async () => await TrackPlayer.setupPlayer({
waitForBuffer: false}).then( async () => {
await TrackPlayer.updateOptions({
// stoppingAppPausesPlayback: true,
android: {
appKilledPlaybackBehavior:
AppKilledPlaybackBehavior.StopPlaybackAndRemoveNotification,
},
notificationCapabilities: [
Capability.Play,
Capability.Pause,
Capability.JumpBackward,
Capability.JumpForward,
Capability.SeekTo,
],
capabilities: [
Capability.Play,
Capability.Pause,
Capability.JumpBackward,
Capability.JumpForward,
Capability.SeekTo,
],
compactCapabilities: [Capability.Play, Capability.Pause],
});
console.log(AppState.currentState, 'Track Player Setup...');});
I would greatly appreciate any help or guidance in resolving this issue. Thank you in advance for your assistance.