capacitor-community / capacitor-community/native-audio

Promise not resolve on NativeAudio.preload

Open
#61 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.