If your connectingSceneSession is not called, check your app Info.plist:
UIApplicationSupportsMultipleScenes = true (YES)
UISceneConfigurations : empty dictionary (array)
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<true/>
<key>UISceneConfigurations</key>
<dict/>
</dict>
Post
Replies
Boosts
Views
Activity
Same problem... same diagnostic
Works fine on simulator 15.2
Does not work correctly on iOS15.4
extension enabled
extension authorized for any url and allowed/always, except on the first page loaded after Safari is killed and restarted
content script won't load (and is clearly not loaded, since it's not even appearing in "sources" when you "remotely" check sources from Safari on Mac using Development tools)
background script is not called back on browser.webNavigation.onBeforeNavigate
I will probably file a bug report...
Warning in console (but there are so many warnings, who can say which one is significant):
errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 "query cancelled" UserInfo={NSLocalizedDescription=query cancelled}
Forgot to add that the extension's entitlements contain:
<key>com.apple.developer.associated-domains</key>
<array>
<string>classificationreport:services.mydomain.com?mode=developer</string>
</array>
Solved...
I had to enable developer mode on the device in Settings / Development.
Same here...
Cupertino? we have a problem...
Then, should I file a bug?
Because that does not seem to work... or at least it does not, when I launch the app from XCode (16). I doubt it would change if installed from the Store.
What is really strange is that I have another Content Blocker, in another Containing App, and the name of this Content Blocker is the Containing App name + "- Content Blocker".
But... I can't find this string in any file in the project (I did a grep on all files and checked in XCode also of course).
If I switch to french language, this name is changed to "*** - Bloqueur de contenu", where "Bloqueur de contenu" exactly means "Content Blocker".
This string is NOT in the InfoPlist.strings file, and the Bundle Display Name, in any case, is not in this strings file.
Any idea?
More info... If I change the Containing App's name, then this is that name that will appear in the Safari's extensions list in Safari App Settings.