Skip to main content
edmunditor
Participating Frequently
February 18, 2014
Question

Mute/Unmute toggle button on iOS devices doesn't mute AIR 4.0 apps

  • February 18, 2014
  • 1 reply
  • 1640 views

Our team just had to rollback our app from using AIR 4.0.1619 (did not test in the non-beta version) because we noticed that the functionality of the mute/unmute button on IOS devices stops working completely. I tested this both by setting the SoundMixer.audioPlaybackMode to AMBIENT and MEDIA (did not try VOICE), and neither worked as expected.

Has anyone else encountered this?

I've created a bug about it:

https://bugbase.adobe.com/index.cfm?event=bug&id=3709618

Please vote for this bug. App store submissions will be immediately rejected if this doesn't get fixed, and AIR 4.0.1619 is also the AIR build that supports targetting the iOS 7.0 platform, which is another App store submission requirement.

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
February 18, 2014

We have chosen to stop honoring the mute switch, because a lot of our support emails are from people who think the app doesn’t have any sound. Our apps are still approved by Apple.

But out of interest, as I happen to be updating an app right now, I re-enabled the line:

SoundMixer.audioPlaybackMode = AudioPlaybackMode.AMBIENT;

and sure enough the mute switch works. Which makes me think that you’re testing on a device that has the mute switch set to do auto rotation lock.

edmunditor
Participating Frequently
February 18, 2014

Whoops, I looked into this further. So I was testing with headphones to not interrupt coworkers, it turns out that even if  iOS tells you that it's muting/unmuting, the audio keeps playing because the headphones are plugged. Did not realize that this was the expected behavior! In MEDIA mode it seems to not have any effect but this is also the case when playing music out of the native Music app, so it seems to bee the correct behavior.

We DID have a bug that our app was being set to MEDIA due to a bad legacy AIR version check that we implemented. Once we fixed that and force it to AMBIENT, and tested without headphones plugged in, things are back to normal.

False alarm!

Colin Holgate
Inspiring
February 18, 2014

Yes, that thing with using headphones was a surprise to me too.

Make sure to update your bug report, so they don’t spend too much time on it!