removeCertificateFromKeychain method
Remove a certificate from iOS Keychain
Implementation
@override
Future<bool> removeCertificateFromKeychain({required String alias}) async {
try {
final result = await methodChannel.invokeMethod<bool>(
'removeCertificateFromKeychain',
{'alias': alias},
);
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Error removing certificate from keychain: ${e.message}');
rethrow;
}
}