Skip to content

All audio comes out of the earpiece instead when notifications are used #147

@aspdev91

Description

@aspdev91

Bug Report

Problem

When I use javascript code from this package, all the audio including music in the WKWebView outputs audio through the earpiece. The volume is really low. I tried setting all audio to come out of the main speaker using this audio plugin, but the notification beeps no longer are outputted.

https://github.com/neohelden/cordova-plugin-audiotoggle

What is expected to happen?

Notification beeps come out from the speaker.

What does actually happen?

Low volume sounds and audio coming out from the earpiece.

Information

Using latest release

Command or Code

navigator.notification.beep(2);

Environment, Platform, Device

iOS 13.7 WKWebView

Version information

What are relevant versions you are using?
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins: 10.0.0 , iOS platform 6.1.1
Other Frameworks: Ionic Framework and CLI version: No Framework

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

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