Posts

Post not yet marked as solved
7 Replies
I sent feedback using the Feedback Assistant.Can't figure out how to clean UserDefaults. I thought of using SFSafariExtensionState.getStateOfSafariExtension in NSApplicationDelegate.applicationDidFinishLaunching, but faced with the fact that UserDefaults has different domains and in NSApplicationDelegate.applicationDidFinishLaunching there is no access to the data that I want to delete. Can you advise me another place to use getStateOfSafariExtension?
Post not yet marked as solved
7 Replies
Thanks for the idea. Should I use SFSafariExtensionState.getStateOfSafariExtension in NSApplicationDelegate.applicationDidFinishLaunching?Regarding the events of installation / uninstallation. I think it was better to have an api to work with these events. This would save developers from such things as setting a value to user default on first launch and then clearing this value.
Post not yet marked as solved
7 Replies
It would be great to be able to clear user data after removing the extension.