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
Android: Sound rings only for a few seconds #454
Comments
@g7i thanks for this information 🙏 trying to think what the best way is to introduce this, couple of options: I think we could have both. But from the example you linked, it seems this is mainly useful for phone calls or any time |
We definitely need to have the 2nd option. There are a bunch of other flags as well. I'm not certain about the 1st one as it can be achieved through the flags itself but its fine if we have it. |
Oh, interesting, definitely can do both. But for the bubble flag, it cannot be set just by specifying the flag itself as stated in the docs. We have a draft p/r to add the ability to do this, we were waiting for the dependencies it needed to become more stable - at the time it was in beta. Definitely can revisit that soon. Bubble p/r: #72 |
Hi @helenaford would you kindly share if there are any updates or estimated timeline on this? We would also love to be able to set the Notification.FLAG_INSISTENT flag for insistent notifications on Android. Either of the options would be great. Thanks!! |
It's what I'm working on now. ETA is early next week although I'm not sure about the other flag. I can open up the api so you can set it and try it out |
this has been released in 5.6.0 🙏 https://notifee.app/react-native/docs/release-notes#560 |
Works great!!! Thanks for the fast turnaround @helenaford 👍 |
I'm encountering the same issue when my app is in background mode. @helenaford |
Hi ! Would there be any way to loop it for iOS as well ? |
Sound rings only for a few seconds on Android 12 device. However on Android 11 it works just fine.
I tried to implement the notification on native side but faced the similar issue. Luckily I stumbled upon the following piece of code in this guide. After setting the flag it started working on Android 12 as well.
Can we have an option to update the notification flags when calling
displayNotification
?The text was updated successfully, but these errors were encountered: