capacitor-community / capacitor-community/native-audio

[Bug] Play remote sound

Open
#16 9 comments 2 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**
The remote sound does not play on iOS

**To Reproduce**
Steps to reproduce the behavior:

```js
import { Plugins } from "@capacitor/core";

const { NativeAudio } = Plugins;

NativeAudio.preloadSimple({
assetPath: "https://actions.google.com/sounds/v1/alarms/bugle_tune.ogg",
assetId: "bugle_tune",
});

NativeAudio.play({
assetId: "bugle_tune",
});

setTimeout(() =>
NativeAudio.unload({
assetId: "bugle_tune",
})
, 5000);
```

**Expected behavior**
Remote sound is played

**Actual behavior**
Remote sound is **not** played

```
ERROR MESSAGE: {"errorMessage":"","message":"Asset Path is missing"}
```

**Smartphone:**
- Device: iPhone SE simulator
- OS: iOS13.6/14
- Version 0.1.3

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.