From c9efda4fa9a9952712e3a632ffddeb9312523081 Mon Sep 17 00:00:00 2001 From: Danish Ahmed Mirza Date: Sat, 18 Jun 2022 20:37:57 +0530 Subject: [PATCH] Stop TrackPlayer on App Close --- app/containers/message/Components/Audio/services.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/containers/message/Components/Audio/services.ts b/app/containers/message/Components/Audio/services.ts index e453114cf..7edd621f1 100644 --- a/app/containers/message/Components/Audio/services.ts +++ b/app/containers/message/Components/Audio/services.ts @@ -37,7 +37,7 @@ export const playbackService = async () => { export const setupService = async () => { await TrackPlayer.setupPlayer(); await TrackPlayer.updateOptions({ - stopWithApp: false, + stopWithApp: true, capabilities: [Capability.Play, Capability.Pause, Capability.Stop], compactCapabilities: [Capability.Play, Capability.Pause] });