Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove notification #134

Open
mkdotcom opened this issue Jan 24, 2018 · 2 comments
Open

remove notification #134

mkdotcom opened this issue Jan 24, 2018 · 2 comments

Comments

@mkdotcom
Copy link

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

@graphee-gabriel
Copy link

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?

@ak99372
Copy link

ak99372 commented Jul 13, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants