capacitor-community / capacitor-community/native-audio
complete event does not work for Android
- Dominant language
- Java
- Stars
- 154
- Forks
- 78
- PR merge metrics
- No merged PRs in 30d
Description
`NativeAudio.addListener('complete')` does not work for Android apps, but it does for web and iOS. I have tested the app with different Android SDKs but none of them worked.
`
NativeAudio.addListener('complete', () => {
console.log('complete triggered');
}).then();
`
The above code does not print logs. But same code does for other platforms.
version: `^7.3.36`
Contributor guide
Research direction
Reproduce the issue in an Android app using NativeAudio.addListener('complete') with version ^7.3.36, and compare the Android behavior with the working web and iOS platforms. Inspect the Android implementation of the complete event; done means the listener triggers and prints the expected log when audio playback finishes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- audio-video-rtc, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100