react-native-audio-streaming
react-native-audio-streaming copied to clipboard
remove notification
Hello Is there a way to remove the notification? (after I call stop()) Thanks you
Same here... The library works pretty well but If I close the app the notification stays and you can't remove it until you re-open the app. You should always close the notification before you close the app. Which is REALLY going to annoy the users... Any fix on the way?
You can call
const { ReactNativeAudioStreaming } = NativeModules;
ReactNativeAudioStreaming.destroyNotification();
But this seems to work only when the player is paused/stopped and as @graphee-gabriel mentioned notification doesn't close itself when app exits As far as I can tell there is also no "onAppClose" react-native event that we could use to close it manually