Mute

An open-source iOS library that lets you detects when the iPhone or iPad has silent mode mode enabled or disabled.

Date: September 2017
Platform: iOS
Language: Swift
Open Source: Github

There is no native iOS API to detect if the mute switch is enabled/disabled on a device.

The general principle to check if the device is muted is to play a short sound and detect the length it took to play. From this length we can determine if it was muted or not.