capacitor-community / capacitor-community/native-audio

no sound on iPad, no error

Open
#99 1 comment 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**
on iPad, no sound when calling play(). same code works on web: chrome, safari

**To Reproduce**
Steps to reproduce the behavior:
1. install the plugin according to the doc
2. put the audio file to assets/sounds and ios/App/App/sounds
3. call NativeAudio.preload() in component init method
4. call NativeAudio.play() in a button click event
5. ng b and npx cap sync
6. run on iPad in the xcode

**Expected behavior**
play the audio and hear the sound. but no sound, the following log print in the xcode console log:
To Native -> NativeAudio play 55630075
music or other software play audio has sound on this iPad

**Screenshots**
no

**Desktop (please complete the following information):**
- OS: Mac os
- chrome, safari
- Version 14.0 (23A344)

**Smartphone (please complete the following information):**
- Device: iPad air 5th gen
- OS: iPad OS 17.0.3
- capacitorjs build to app
- Version 5.0

**Additional context**
same code works on Mac, chrome and safari

Contributor guide

Open the contributing guide

Research direction

Start with the NativeAudio.preload() and NativeAudio.play() calls, the assets/sounds and ios/App/App/sounds paths, and the Xcode console output on the iPad. Reproduce the issue using the listed Capacitor build and sync steps; done means the bundled audio plays on iPad without an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios
Domain
audio-video-rtc, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.