Safari app extension does not appear in safari preferences extensions tab after installing pkg

I have a Mac application of type agent (i.e. LSUIElement is true)
This application contains a safari app extension.
I create pkg installer of my application.
This pkg installer is responsible for installing the application and launch it as soon as it gets installed.

When I run pkg installer, my application gets installed and launched successfully. But, initially safari app extension does not appear in safari preferences extensions tab.

When I quit the application and re-launch it, I can see safari app extension in safari preferences extensions tab.

Can anyone please assist on this issue.

Replies

When you say "quit the application and re-launch it" - do you mean your application? Or Safari?

Can you file feedback at https://feedbackassistant.apple.com and include a sysdiagnose taken after the first launch of your app? When Safari doesn't see your extension, and let me know the feedback ID once you've done that?

Thanks!