-
Notifications
You must be signed in to change notification settings - Fork 212
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
Disabled notification sound and vibration on oreo #9
Disabled notification sound and vibration on oreo #9
Conversation
I would prefer making this configurable. |
This would involve a much deeper change, as |
I think we should start with this, to supply the default expected behavior. I'm not familiar with the library so much that I'd feel comfortable changing it's structure yet. |
Ok. Let's see. |
Merged. Thank you! |
Origin-PR: mauron85/background-geolocation-android#9 Contributed-By: @danielgindi
Android - disable notification sound and vibration on oreo Origin-PR: mauron85/background-geolocation-android#8 mauron85/background-geolocation-ios#3 Contributed-By: @danielgindi Origin-PR: mauron85/background-geolocation-android#9 Contributed-By: @danielgindi
Still plays notification sound. Tested on Galaxy S8 Oreo 8.0 and Emulator API 26. |
I'm afraid it will not work for applications that are already installed, as notification channels are only created once. Creating them again does not update them. |
Yes, reinstall was solved it. |
In Oreo you can't count on the notification's defaults, or even settings that you've set explicitly, because the
NotificationChannel
is pre-defined with an annoying sound and vibration.This is too alarming to the user, and happens multiple times.
This fixes the behavior on Oreo.
Closes: mauron85/react-native-background-geolocation#260