Note: The XCUIDevice.Button.volumeUp and XCUIDevice.Button.volumeDown buttons are not available in the Simulator. Use TARGET_OS_SIMULATOR to check that your test is not running in the Simulator before calling these APIs.
A custom handler to be called when a matching notification is received.