Stop TrackPlayer on App Close
This commit is contained in:
parent
4cb6674eb4
commit
c9efda4fa9
|
@ -37,7 +37,7 @@ export const playbackService = async () => {
|
||||||
export const setupService = async () => {
|
export const setupService = async () => {
|
||||||
await TrackPlayer.setupPlayer();
|
await TrackPlayer.setupPlayer();
|
||||||
await TrackPlayer.updateOptions({
|
await TrackPlayer.updateOptions({
|
||||||
stopWithApp: false,
|
stopWithApp: true,
|
||||||
capabilities: [Capability.Play, Capability.Pause, Capability.Stop],
|
capabilities: [Capability.Play, Capability.Pause, Capability.Stop],
|
||||||
compactCapabilities: [Capability.Play, Capability.Pause]
|
compactCapabilities: [Capability.Play, Capability.Pause]
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue