react-native-audio-streaming icon indicating copy to clipboard operation
react-native-audio-streaming copied to clipboard

remove notification

Open mkdotcom opened this issue 7 years ago • 2 comments

Hello Is there a way to remove the notification? (after I call stop()) Thanks you

mkdotcom avatar Jan 24 '18 14:01 mkdotcom

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?

graphee-gabriel avatar May 01 '18 20:05 graphee-gabriel

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

ak99372 avatar Jul 13 '18 14:07 ak99372