// iOS example (requires CNContactStore) let store = CNContactStore() let request = CNSaveRequest() let contact = mutableContact contact.phoneNumbers.removeAll(where: $0.value.stringValue == blockedNumber ) request.update(contact) try store.execute(request) Would you like this turned into a , interactive walkthrough , or in-app tooltip ?
// Android example: unblock a number from system block list val uri = CallLog.Calls.CONTENT_URI val where = CallLog.Calls.NUMBER + " = ?" val selectionArgs = arrayOf(blockedNumber) contentResolver.delete(uri, where, selectionArgs)
// iOS example (requires CNContactStore) let store = CNContactStore() let request = CNSaveRequest() let contact = mutableContact contact.phoneNumbers.removeAll(where: $0.value.stringValue == blockedNumber ) request.update(contact) try store.execute(request) Would you like this turned into a , interactive walkthrough , or in-app tooltip ?
// Android example: unblock a number from system block list val uri = CallLog.Calls.CONTENT_URI val where = CallLog.Calls.NUMBER + " = ?" val selectionArgs = arrayOf(blockedNumber) contentResolver.delete(uri, where, selectionArgs) how to unblock a phone number