-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
vibrate: false is ignored #1140
Comments
I'm also having this issue. Any update or progress? |
This is a bug in Android 8+. You can fix it in
Add this at the end of the file. |
Any chances we can get a few fixes pushed into the library? |
@necto68 Do you have the links on docs about that android bug? github issue, docs, or anything. |
@necto68 tnx, this solution works on my Google Pixel (Android 10). If someone can't get this solution to work, make sure to clear the app data or reinstall the app after you update the |
|
Hi! |
Any updates on pushing a fix for the library? I'm having this issue with my app as well. |
Hi @maxtotallycodes |
Hey @Dallas62, it sounds like @necto68 has the fix above (#1140 (comment)). Unfortunately I'm not technical (the username is a bit tongue in cheek), but I'm investigating because my team is having this issue. |
I check this fix but it's not so easy... |
How much work would a refactor like that be? My team (and I'm sure many others) would be okay with a clunkier solution in the short term that requires some work on our end because right now we're buzzing all our users phones when we really shouldn't be and driving them nuts. Even if it's not a perfect solution, anything would be great! |
Hi @maxkomarychev |
Thank you! 🙏 We'll cross our fingers! |
Hi @maxtotallycodes a new release is available with a fix on vibrate. |
We tried out the new release and unfortunately it made all our notifications the silent kind that appear minimized at the bottom of the notification tray (and they're only visible when you open the notification tray). :( If working with that other library is the best option, do we have code they could use for scheduled notifications? |
Sorry for this issue, I fixed it on |
@Dallas62 that seemed to do the trick, thank you! |
Hello, After upgrading to 3.3.1 from 3.2.1, I'm getting "Default FirebaseApp is not initialized in this process. Make sure to call FirebaseApp.initializeApp(Context) first." I am not using remote notifications nor firebase, why am I getting this? |
Hi @clintonjrobinson |
where this file located at?? |
Hi,
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,
The text was updated successfully, but these errors were encountered: