I know apple didn’t have API for that but I found applications on the app store that can make an iPhone silent when the it’s in a specific registered location. I’m trying to make it in silent mode when the iPhone detects specific Bluetooth device.
Recognized by Mobile Development Collective