I started playing a sound when the app is in background, so i need to get the current sound that is playing in background and stop it.
:beetle: What have you tried?
i tried something like this,
whoosh.stop(() => {
// Note: If you want to play a sound after stopping and rewinding it,
// it is important to call play() in a callback.
whoosh.play();
});
wasn;t really working
:beetle: Please post your code:
This is the code i use to initiate the background job at a particular time in the future
:beetle: Description
I started playing a sound when the app is in background, so i need to get the current sound that is playing in background and stop it.
:beetle: What have you tried?
i tried something like this,
wasn;t really working :beetle: Please post your code:
This is the code i use to initiate the background job at a particular time in the future
This is the function i used to play the song...
:bulb: Possible solution
Is your issue with... Android and IOS
Are you using... React Native CLI
react-native run-android
)Which versions are you using?
Does the problem occur on... on Simulator