This is inconsistent with Android, which simply returns true if the Secure Storage was already empty.
I'd expect this method to simply return true if the Keychain was already empty. Throwing an error suggests that something went wrong in the removal process, which is not the case.
Would it be possible to either:
Add something to the documentation that mentions this iOS-specific behavior
Or let iOS return true if SecureStoragePlugin.clear() is called if the Keychain is already empty
When the Keychain is already empty and then calling
SecureStoragePlugin.clear()
on iOS, it throws an error:This is inconsistent with Android, which simply returns
true
if the Secure Storage was already empty.I'd expect this method to simply return
true
if the Keychain was already empty. Throwing an error suggests that something went wrong in the removal process, which is not the case.Would it be possible to either:
true
ifSecureStoragePlugin.clear()
is called if the Keychain is already emptyThanks in advance!