I can check if my Safari app extension is enabled using the SFSafariExtensionManager getStateOfSafariExtensionWithIdentifier
API.
I can also check if the URL was opened in private mode using the SFSafariPageProperties usesPrivateBrowsing
API.
But this doesn't solve my problem. I want to know if my Safari app extension is enabled in private mode and I also want to know if the extension allows tracking all websites.
I am trying this with Safari 17 on macOS 14 Beta.
Get status of Safari App Extension in private mode Safari 17
This is not currently possible.
Can you please file feedback on https://feedbackassistant.apple.com with this request and what you are trying to do with your extension?
Thanks!