Safari Extension Auto installation and enable without user interaction on Mac-OS

I want to deploy safari extension through Emm(intune,Airwatch).I have successfully deployed mac app which install the extension, but it require user interaction from app to open safari preferences where i can see extension,FurtherMore it require to select a checkbox from safari preference to enable the extension.My requirement is to install and enable it automatically without user interaction.If there is any way please let me know.

Replies

You can't force enable a Safari extension. The best you can do is check to see if it is enabled with:

getStateOfSafariExtension(withIdentifier:compeltionHandler:) when your container app is launched.


Then you can prompt the user to enable it if they need to.