cordova -v): 7.0.1cordova platform ls):6.2.3I'm using ionic1 i want make notification but sound and vivration be disabled
Notification sound and vibration cannot be disabled
i make sound be null
I'm trying disabled sound and vibration but in my case if notification show sound and vribation still enable
Not available.
please ignore the template because I don't have technical issue.
@RizkaOMG If it's not a technical issue then you wanna talk with a lawyer or football player instead about your issue? ;)
For example the answer may depend on the plugin version, the OS, the OS version, the cordova version, ...
I already change @katzer , what the problem in my issue
@RizkaOMG The sound is possible to disable, vibration not (yet). I am currently working on the next major release. Maybe that will be able to do at least for Android.
for both iOS and Android you can disable the sound via
cordova.plugins.notification.local.schedule({ sound: null, ... });
You have to correct java code.
in builder.java
fix like this
if (sound != null) {
builder.setSound(sound);
}
=>
if (sound != null) {
if(!sound.toString().equals(new String(""))){
builder.setSound(sound);
}
}
Since v0.9-beta you can do:
cordova.plugins.notification.local.schedule({ sound: false, vibrate: false });
sound: null works for me in ionic 3
I tried both sound: false and sound: null and neither seems to be working.
Any advice?
same here, using cordova 8.1.2 with android and can't make it stop. tried null, false, nothing works.
Same here... Someone got the solution?
Same here.. I've tried empty string, null and false still the same..
working with:
"@angular/cdk": "^9.2.1"
"@ionic-native/core": "^5.23.0"
"@ionic/angular": "^5.0.7"
"cordova-android": "8.1.0"
"cordova-plugin-local-notification": "^0.9.0-beta.2",
Any update on this?
any updates?
This is not working. Any update please ?
Most helpful comment
I tried both
sound: falseandsound: nulland neither seems to be working.Any advice?