question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android: Sound rings only for a few seconds

See original GitHub issue

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.

     // Set notification as insistent to cause your ringtone to loop.
     Notification notification = builder.build();
     notification.flags |= Notification.FLAG_INSISTENT;

Can we have an option to update the notification flags when calling displayNotification?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
helenafordcommented, Aug 9, 2022

this has been released in 5.6.0 🙏 https://notifee.app/react-native/docs/release-notes#560

1reaction
sosunnycommented, Aug 10, 2022

Works great!!! Thanks for the fast turnaround @helenaford 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix: Android Randomly Rings When No One Is Calling
If your Android phone starts ringing when there's no one calling, disable the NFC ... The ringing stopped by itself after a few...
Read more >
Phone rings only for 1 or 2 second, then......
I noticed since 4.3 upgrade that my phone rings for perhaps one or two seconds and then continues to "ring" silently!
Read more >
How to Change Number of Rings on Android - wikiHow
1. Open the Phone app on your Android. It's the phone receiver icon typically near the bottom of your home screen. Although there...
Read more >
Why Won't My Android Ring? 8 Ways to Fix Ringing Issues
How to troubleshoot when your Android phone isn't ringing · 1. Open the Settings app. · 2. Select "Sound." · 3. Tap Phone...
Read more >
How to extend the ring time of your Android phone - YouTube
How To Make Your Phone Ring For Longer Telstra · Top 5 Excel Functions for Finance People (with end-to-end example) · Telstra brings...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found