Skip to content

Android: Sound rings only for a few seconds #454

@g7i

Description

@g7i

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions