alarm icon indicating copy to clipboard operation
alarm copied to clipboard

The alarm can't stop the audio file that was copied to the getApplicationSupportDirectory() path automatically.

Open pyjserv opened this issue 6 months ago • 2 comments

Hi @gdelataillade,

Alarm plugin version 3.1.5

Describe the bug Because I don't know how to play a ringtone with alarm by the uri, I duplicated the built-in ringtone file to my app's directory with uri_to_file. Even if I set the loop to 'false', when the alarm plays the '.ogg' audio file that was copied to the 'getApplicationSupportDirectory()' path, the line 'onAudioComplete?.invoke()' in 'AudioService.kt' is never invoked.

The 'getApplicationSupportDirectory()' method is from path_provider package. On my Android device, the actual path is '/data/user/0/com.claberi.consillia/files/'.

pyjserv avatar Aug 23 '24 16:08 pyjserv