I can check if my Safari app extension is enabled using the SFSafariExtensionManager getStateOfSafariExtensionWithIdentifier API for default.
But in case the user disables the extension for his own profile, I want to know if my safari app extension is enabled in that particular safari profile programatically using API. I'm trying this with Safari 17 on macOS 14 Beta. It's possible? If so, what API can do this for me?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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.
In macOS 13 Ventura, as soon as mac apps gets installed from packages, it shows two alerts (Login Items Added) one as "Unknown Developer" and other as with proper developer name. On click of alerts, it opens System Preferences and navigates to General -> Login Items. It lists our apps under "Allow in the Background", one with "unidentified developer" and other with proper developer name. We followed all steps required with all apps. So why one app showing as "unidentified developer" and other with proper developer name?
Also app with correct developer name, missing with its app icon.
I need to check if the webpage loaded successfully or if there was any error while loading the webpage in WebView on OS X 10.9. How can I verify this? I can use the delegate method for the same on macOS 10.10 and higher using WKWebView(decidePolicyForNavigationResponse). Is there such a delegate method for WebView in OS X 10.9?
Web page contents are at centre if we open web page in WKWebView on macOS 10.10 and above or in web browser. But if we open in WebView on macOS 10.9, contents are getting aligned to top left instead of centre. Any things am I missing?
NSURL *url = [[NSBundle mainBundle] URLForResource:@"COMPUTER & MOBILE PANEL" withExtension:@"html"];
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
WebView *aWebView = [[WebView alloc] initWithFrame:webViewContainer.bounds];
[aWebView setFrameLoadDelegate:self];
[webViewContainer addSubview:aWebView];
[[aWebView mainFrame] loadRequest:request];
Sample code here...
https://drive.google.com/file/d/1QZkPy9dusBZbG274dOsru9gmK8pYZII-/view?usp=sharing