Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios only: sound not playing when app is in background and some other app has sound on #369

Open
orhan-swe opened this issue Apr 5, 2023 · 0 comments

Comments

@orhan-swe
Copy link

orhan-swe commented Apr 5, 2023

Bug Report

Problem

I have an alarm app. On ios sound will not start playing when the app is in background and some other app has sound on.
When the app is in background and there is no other app playing sound the sound in my alarm app will start fine.
Works fine on Andrid.

What is expected to happen?

The other app sound should stop and my alarm app sound should start playing.

What does actually happen?

The other app sound continues playing but my alarm app only shows alarm notification.

Information

This is an alarm app. The alarm sound starts fine and sound is working fine all the other time, even when the app is in background and phone is in sleep. But the sound does not start when the app is in backround and some other app is playing some other sound. For example if ios Music app is playing music.

Command or Code

It is difficult to reproduce this as you need to have notification plugin wake up the app at some point in time and then play some audio file in form of alarm sound at the same time as some other app is playing music for example.

Environment, Platform, Device

The issue is only seen on ios, on android it works fine.

Version information

I have tested this on several ios versions and it is same on all of them. Cordova-plugin-media version i am using is 6.1.0 and cordova-ios is 6.2.0

Checklist

  • [x ] I searched for existing GitHub issues
  • [x ] I updated all Cordova tooling to most recent version
  • [x ] I included all the necessary information above
orhan-swe pushed a commit to orhan-swe/cordova-plugin-media that referenced this issue Apr 27, 2023
orhan-swe pushed a commit to orhan-swe/cordova-plugin-media that referenced this issue Apr 28, 2023
orhan-swe pushed a commit to orhan-swe/cordova-plugin-media that referenced this issue Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant