-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
fix cancelAlarm on android #957
Conversation
I noticed that firebase.notifications().cancelAllNotifications() has no effect on android phones. All scheduled notifications still appear. The propsed change fixes this. It was "inspired" by https://stackoverflow.com/questions/35341682/cancel-the-scheduled-android-notification/35342066#35342066
Great catch! Thanks for highlighting and submitting the PR - we'll get this into the 4.0.1 release |
@chrisbianca - I am not able to remove delivered notification with notificationId also. I am using this for Android OS. I have updated the
I am still able to access notification from |
@credifiable |
hi @matttti , can you show me how to save your changes into this repo and make sure that after npm install i still got my own changed codes back ? ex i call removeDeliveredNotificationsByTag function from native in dist folder in node_modules after npm install. I did fork this repo and try to find the function that i can make some changes into but i can't. So how we can save changes in react-native-firebase in node_modules and then if another devices use npm install, there will be my changes ? Plz help i need it really bad ! |
@hanzoow patch-package https://github.com/ds300/patch-package - it's fantastic |
hi ! after generate react-native-firebase+5.6.0 file, what should i do next with this file ? Please guide me |
I will not guide you. You will read the patch-package documentation. |
yeah thank you for the recommend ! i did it. |
I noticed that firebase.notifications().cancelAllNotifications() has no effect on android phones. All scheduled notifications still appear. The propsed change fixes this. It was "inspired" by https://stackoverflow.com/questions/35341682/cancel-the-scheduled-android-notification/35342066#35342066