How to unlock iOS device with passcode using appium javascript?

I am writing automation test scripts in javascript using appium and the application being tested requires that the device have the screen lock enabled. I have added capabilities below and unlock the iOS device not working:

unlockType: ‘pin/password/passcode’,
unlockKey: ‘123456’,

Please suggest how it is achievable.


I am afraid this is not possible, at least by using XCTest framework