Skip to content

no sound on iPad, no error #99

@anndyd

Description

@anndyd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions