openSettings static method

Future<void> openSettings()

Opens the iOS Settings app and shows the Call Blocking & Identification settings.

Before a Call Directory extension can operate on incoming calls, the user must explicitly enable the extension in the iOS Settings app.

Possible errors listed in the FCXCallKitCallDirectoryManagerError.

Implementation

static Future<void> openSettings() async {
  try {
    String method = 'openSettings';
    await _methodChannel.invokeMethod(
      '$_PLUGIN.$method',
    );
    _FCXLog._i(_self, method);
  } on PlatformException catch (e) {
    var exception = FCXException(e.code, e.message);
    _FCXLog._e(_self, exception);
    throw exception;
  }
}