Assistive touch and iPhone X AudioSession

Hello, I got a bug report from QA team for an app.


When enabling Assistive touch in settings and restart an app, BGM doesn't play.

I use


bool otheraudioplaying=[[AVAudioSession sharedInstance] isOtherAudioPlaying];


to check if music is played outside app. I stop app BGM when otheraudioplaying is true.

Unfortunately, on iPhone X only, it seems that when Assistive touch enabled otheraudioplaying

becomes true.


Is it by design, and if it is, how do I implement is other audio playing check in my app?

Any workarounds will help. Thank You!

I think I can fix it by using secondaryAudioShouldBeSilencedHint.

So, nvm then.

It countinues:

I got response about testing a fix after switching to secondaryAudioShouldBeSilencedHint.

Issue still appears on iOS 11.0.1. After updating to iOS 11.1 it seems to be fixed.

Does anybody have such problem? If You found a workaround for iOS 11.0.1 please write about it here.

Will go with Wontfix for now, coz most of people will upgrade to latest OS.

Assistive touch and iPhone X AudioSession
 
 
Q