Safari Services

RSS for tag

Enable web views and services in your app using Safari Services.

Posts under Safari Services tag

145 Posts

Post

Replies

Boosts

Views

Activity

Smart app banner doesn't show up in SFSafariViewController while it's showing up on Safari iOS app
I'm building an app that can present a web page via SFSafariViewController. However, I found that when opening a web page (powered by SFSafariViewController) for which there is an iOS app installed, the smart app banner doesn't show up (https://ibb.co/B3mNS0c) so there is no way to segue from the page to the app. I checked the same page loaded directly on Safari iOS app, the banner indeed shows up https://ibb.co/xmw7vDy. Does anyone know how I can enable the banner for the page presented within my app? Thanks!
0
0
735
Oct ’21
SFContentBlockerManager reloadContentBlocker crash on macOS 10.15.7 in Catalyst application
Hello, I have use Safari content blocker extension on Mac Catalyst application. Here is the code for reloadContentBlocker // Config.BLOCKER_EXTENSION = Content blocker extension bundle identifier func reloadBlockerRules() {     if #available(macCatalyst 13.4, *) {       SFContentBlockerManager.reloadContentBlocker(withIdentifier: Config.BLOCKER_EXTENSION, completionHandler: { error in         if error != nil {           TextLog.shared.write("RELOAD OF \(Config.BLOCKER_EXTENSION) FAILED WITH ERROR -\(error?.localizedDescription ?? "")")         }       })     } else {       // Fallback on earlier versions       TextLog.shared.write("Fallback on earlier versions - reloadBlockerRules")     }   } I have reload the blocker rules on application startup but its cashing every time with following reason : System Integrity Protection: enabled Crashed Thread:    0 Dispatch queue: com.apple.main-thread Exception Type:    EXC_CRASH (SIGABRT) Exception Codes:    0x0000000000000000, 0x0000000000000000 Exception Note:    EXC_CORPSE_NOTIFY Application Specific Information: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSXPCInterfaceProxy_SafariExtensionHelperProtocol loadContentBlockerWithIdentifier:sandboxExtensionToken:invokedBySafariFamily:reply:]: unrecognized selector sent to instance 0x6000012ac370' terminating with uncaught exception of type NSException abort() called Can you please help me out for find the crash reason ?
1
0
1.1k
Oct ’21
Use of Prefs: Settings
Hi everyone: How all we know the use of App-Prefs:root is a headache, because it causes rejection in AppStore, because it's considered that root and following is a private API. The app-settings: scheme redirect to our app settings, and that's not the behaviour expected @eskimo what about only use App-Prefs:? Is it considered private API? Is it not an app scheme? We have a lot of issues open by users because the mobileconfig download, since iOS 12.2 from Safari, not redirect the user to the profile settings. Users complain because of it, and maybe with the simple fact of could open settings not our app settings, the settings app could solve the problem because of the iOS Bug is not resolved nowadays. Thanks for all, Best regards,
4
1
9.0k
Oct ’21
Smart app banner doesn't show up in SFSafariViewController while it's showing up on Safari iOS app
I'm building an app that can present a web page via SFSafariViewController. However, I found that when opening a web page (powered by SFSafariViewController) for which there is an iOS app installed, the smart app banner doesn't show up (https://ibb.co/B3mNS0c) so there is no way to segue from the page to the app. I checked the same page loaded directly on Safari iOS app, the banner indeed shows up https://ibb.co/xmw7vDy. Does anyone know how I can enable the banner for the page presented within my app? Thanks!
Replies
0
Boosts
0
Views
735
Activity
Oct ’21
SFContentBlockerManager reloadContentBlocker crash on macOS 10.15.7 in Catalyst application
Hello, I have use Safari content blocker extension on Mac Catalyst application. Here is the code for reloadContentBlocker // Config.BLOCKER_EXTENSION = Content blocker extension bundle identifier func reloadBlockerRules() {     if #available(macCatalyst 13.4, *) {       SFContentBlockerManager.reloadContentBlocker(withIdentifier: Config.BLOCKER_EXTENSION, completionHandler: { error in         if error != nil {           TextLog.shared.write("RELOAD OF \(Config.BLOCKER_EXTENSION) FAILED WITH ERROR -\(error?.localizedDescription ?? "")")         }       })     } else {       // Fallback on earlier versions       TextLog.shared.write("Fallback on earlier versions - reloadBlockerRules")     }   } I have reload the blocker rules on application startup but its cashing every time with following reason : System Integrity Protection: enabled Crashed Thread:    0 Dispatch queue: com.apple.main-thread Exception Type:    EXC_CRASH (SIGABRT) Exception Codes:    0x0000000000000000, 0x0000000000000000 Exception Note:    EXC_CORPSE_NOTIFY Application Specific Information: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSXPCInterfaceProxy_SafariExtensionHelperProtocol loadContentBlockerWithIdentifier:sandboxExtensionToken:invokedBySafariFamily:reply:]: unrecognized selector sent to instance 0x6000012ac370' terminating with uncaught exception of type NSException abort() called Can you please help me out for find the crash reason ?
Replies
1
Boosts
0
Views
1.1k
Activity
Oct ’21
chrome_settings_overrides For iOS
do we have settings for changing search provider through extension on latest iOS 15?
Replies
1
Boosts
0
Views
1k
Activity
Oct ’21
Use of Prefs: Settings
Hi everyone: How all we know the use of App-Prefs:root is a headache, because it causes rejection in AppStore, because it's considered that root and following is a private API. The app-settings: scheme redirect to our app settings, and that's not the behaviour expected @eskimo what about only use App-Prefs:? Is it considered private API? Is it not an app scheme? We have a lot of issues open by users because the mobileconfig download, since iOS 12.2 from Safari, not redirect the user to the profile settings. Users complain because of it, and maybe with the simple fact of could open settings not our app settings, the settings app could solve the problem because of the iOS Bug is not resolved nowadays. Thanks for all, Best regards,
Replies
4
Boosts
1
Views
9.0k
Activity
Oct ’21
iOS 15 Safari web extensions
Where can I find sample codes and some api listing for iOS only?
Replies
3
Boosts
0
Views
799
Activity
Oct ’21