vibrate: false is ignored
See original GitHub issueHi,
my settings disabling to vibrate function, but on each notification my device are still vibrating. It is a bug in your lib or have I a misconfiguration?
“react-native”: “^0.58.6” “react-native-push-notification”: “^3.1.3”
test-device: huawai p10 lite android: 8.0.0
my settings: `localNotif(message, item) { PushNotification.localNotification({ /* Android Only Properties */ id: ‘1’, autoCancel: true, largeIcon: “ic_launcher”, smallIcon: “ic_notification”, bigText: message, vibrate: false, // (optional) default: true vibration: 0, // vibration length in milliseconds, ignored if vibrate=false, default: 1000 itemData: item,
/* iOS only properties */
alertAction: 'view',
category: null,
userInfo: null,
/* iOS and Android properties */
title: Localization('General.Download.DownloadTitle'), // (optional)
message: message, // (required)
playSound: false, // (optional) default: true
soundName: 'default',
number: '10',
// actions: '["Yes", "No"]',
});
}`
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:21 (2 by maintainers)
Top Results From Across the Web
Notification vibrate issue for android 8.0 - Stack Overflow
This is a bug on Android 8 notification system. I've tinkered with different combinations of enableVibration with setVibrationPattern(null) ...
Read more >Google Messages is ignoring Pixel 4a phone vibration settings
I have notification vibration turned off for the entire device (Pixel 4a), as in screenshot below. Messages still vibrates. I saw in the ......
Read more >Navigator.vibrate() - Web APIs | MDN
The Navigator.vibrate() method pulses the vibration hardware on the device, if such hardware exists. If the device doesn't support vibration ...
Read more >core/java/android/os/Vibrator.java - platform/frameworks/base
* Check whether the vibrator has amplitude control. *. * @return True if the hardware can control the amplitude of the vibrations, otherwise...
Read more >cordova-plugin-vibration
Calls to navigator.vibrate will immediately return false if user hasn't tapped on the frame or any embedded frame yet. Please checkout https://issues.apache ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a bug in Android 8+. You can fix it in
RNPushNotificationHelper.java
.Add this at the end of the file.
Sorry for this issue, I fixed it on
3.3.1
.