I have enabled FileVault on macOS having a custom authorisation plugin , which will load our multi-factor authentication (MFA) window . This third-party custom authorisation plugin replaced loginwindow:login mechanism from authorisation db (system.login.console) .After these changes, during reboot, we observed that the focus isnt on our custom Xib window.We noticed that the custom Xib window is rendered on a completely black background . End user has to use mouse to click on the custom Xib window, so that the textbox gains its focus.
The possible solutions we have tried,
- Simulating mouse click
- Making Window to gain focus using makeKeyAndOrderFront
Steps to reproduce:
- Enable Filevault on the machine
- Remove loginwindow:login and add your custom authorisation plugin in its place with a textbox to capture password
3.Perform reboot of the machine 4.The custom xib window is rendered on a black window but the window doesnt gain focus. The user has to perform a mouse click on the window to gain its focus
Any help would be greatly appreciated on the above mentioned issue