openMicrophoneSettings method

Future<bool> openMicrophoneSettings()

Open this app's OS settings page so the user can grant the microphone after a permanent denial — iOS never re-prompts once the user has refused, so this is the only way back. Returns true if the settings page was opened.

Implementation

Future<bool> openMicrophoneSettings() async {
  try {
    return await openAppSettings();
  } catch (e) {
    NexusLog.warn('voice: could not open app settings: $e');
    return false;
  }
}