capacitor-community / capacitor-community/native-audio
Promise not resolve on NativeAudio.preload
- Dominant language
- Java
- Stars
- 154
- Forks
- 78
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Promise does not resolve on preloading Assets
**To Reproduce**
```ts
NativeAudio.preload({
assetId: 'sound.mp3',
assetPath: 'public/assets/sound.mp3',
audioChannelNum: 1,
isUrl: false,
})
.then(() => console.log('loaded'))
.catch(e => console.error(e))
```
**Expected behavior**
Promise should be resolve or fail
**Smartphone (please complete the following information):**
- iOS 15
**Additional context**
Add any other context about the problem here.
Contributor guide
Research direction
Start by reproducing the NativeAudio.preload example on iOS 15, then inspect the plugin entry point that handles preload requests. Trace both the success and failure paths; done means the returned Promise resolves when the asset loads or rejects when preloading fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, typescript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100