1

I am trying to change the call volume programmatically and searched a lot about it. I couldn't find a resource that is implementing it. some of my search links below.

They do change the Media volume but not ones with related to call that I am trying to manipulate.

I am able to listen to the changes using a NotificationCenter. Code Below:

NotificationCenter.default.addObserver(self, selector: #selector(volumeChangeListener), name: NSNotification.Name("AVSystemController_SystemVolumeDidChangeNotification"), object: nil)

@objc func volumeChangeListener(notification: NSNotification) {
print("VOLUME CHANGE: (notification.userInfo?.["AVSystemController_AudioVolumeNotificationParameter"] as? Float)")
}

but can't change the volume of call Programmatically. I would be really grateful for your help.

Muhammad Faizan
  • 353
  • 4
  • 15

1 Answers1

-1

Discussions here
How to change device Volume on iOS - not music volume

works well with none-Call volume (even on iOS 15.4).

However, changing volume during call, I can see the UI changes: enter image description here

But there isn't any call volume change.

cambs
  • 29
  • 6
  • This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/late-answers/31414193) – Taz Apr 04 '22 at 04:41