How to install and enable Safari App Extension silently

Does anyone know how to install and enable Safari App Extension? When I run containing app at the first time, I can see my extension shows up in Preferences->Extension list, but it's not 'Checked'. I have to manually check to enable it.


Legacy way to change "~/Library/Safari/extensions.plist" is not working any longer. I also tried to use profile, it didn't work either.

Safari App extensions are disabled by default when installed, you need to ask the user to enable it

How to install and enable Safari App Extension silently
 
 
Q