What's new in Safari extensions

RSS for tag

Discuss the WWDC23 Session What's new in Safari extensions

Posts under wwdc2023-10119 tag

6 Posts

Post

Replies

Boosts

Views

Activity

The Info.plist must contain a LSApplicationCategoryType key
I've created a Safari Extension app using the MultiPlanform option. I can successfully distribute the iOS app for beta testing with TestFlight, but when I try to do this with the macOS version, I get the following error: The product archive is invalid. The Info.plist must contain a LSApplicationCategoryType key, whose value is the UTI for a valid category. For more details, see "Submitting your Mac apps to the App Store". For the record, I searched for the mentioned document and couldn't find it. A link would be nice. Regardless, when I look at the macOS (App) in the Navigator Panel, there is no Info.plist file. There is one, however, in iOS (App). When I open Test Flight on my Mac, I see the app, but that's most likely because I have an M1 chip. I can't find any documentation on this, so I'm asking: Do I need to create an Info.plist file for the macOS (App), and if so, what do I need to put in there? If I don't need this, how do I deal with this error? Thanks in advance for any helpful advice.
3
0
6.4k
Sep ’23
Get status of Safari App Extension enabled or disabled in Safari 17 for a particular profile
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?
1
0
1k
Aug ’23
How let Safari not show per-site banner for app extension when upgrade
Hi From the video, Safari will pop up a banner for these enabled app extension, which can let user set per-site option, when upgrade to Safari17(MacOS14). Such as following: For enterprise, there are too many users install app extensions. We want to set these by management tools. We have following questions: For upgrade users, Is there any way or tools to disable this banner or grant "ALLOW" for user automatically? Such as MDM tools. For fresh install user, is there any way to grant per-site permission automatically by MDM tools or others? Thanks. Best wishes eric_wang_mac
0
0
793
Jul ’23
Get status of Safari App Extension in private mode Safari 17
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.
1
0
845
Jul ’23
Looking for sample code showing how to use Core Data with a Public CloudKit Database
I'm looking for sample code showing how to use Cre Data with a public CloudKit database. I found WWDC20-10650. However, when I pull the sample project, the project has been updated for WWDC22-10119 (which shows how to use Core Data with a shared CloudKit database.) According to the WWDC20-10650 talk, you interact with the public database differently. Does anyone know where I can find a working sample project that shows how to setup and properly query a public CloudKit database using Core Data? Thanks, Alan
0
0
804
Jun ’23
Migrating CSS Content Blocker to Web Extension
Hi, In the WWDC23 session “What’s new in Safari extensions,” the presenter says: There are four ways to build Safari extensions: content blockers, share extensions, app extensions, and web extensions. Safari 17 continues to support all of these types, but the future of browser customization lies in web extensions. I take that to mean that content blocker extensions won’t be supported indefinitely, so I would like to get ahead of this by migrating my CSS content blocker to a web extension. However, I don’t see an API which allows for declarative CSS blocking in the same privacy-preserving way. I like the current way of building CSS content blockers because I can block page content without requesting any additional permissions. This provides a very smooth user experience, but I don’t see any way to do this using Safari web extensions. This method of blocking content is even referenced in the video, but only as a way to draw parallels to Declarative Net Request. Did I miss a change that allows me to build a privacy-preserving CSS content blocker in a web extension?
1
1
1.3k
Jun ’23
The Info.plist must contain a LSApplicationCategoryType key
I've created a Safari Extension app using the MultiPlanform option. I can successfully distribute the iOS app for beta testing with TestFlight, but when I try to do this with the macOS version, I get the following error: The product archive is invalid. The Info.plist must contain a LSApplicationCategoryType key, whose value is the UTI for a valid category. For more details, see "Submitting your Mac apps to the App Store". For the record, I searched for the mentioned document and couldn't find it. A link would be nice. Regardless, when I look at the macOS (App) in the Navigator Panel, there is no Info.plist file. There is one, however, in iOS (App). When I open Test Flight on my Mac, I see the app, but that's most likely because I have an M1 chip. I can't find any documentation on this, so I'm asking: Do I need to create an Info.plist file for the macOS (App), and if so, what do I need to put in there? If I don't need this, how do I deal with this error? Thanks in advance for any helpful advice.
Replies
3
Boosts
0
Views
6.4k
Activity
Sep ’23
Get status of Safari App Extension enabled or disabled in Safari 17 for a particular profile
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?
Replies
1
Boosts
0
Views
1k
Activity
Aug ’23
How let Safari not show per-site banner for app extension when upgrade
Hi From the video, Safari will pop up a banner for these enabled app extension, which can let user set per-site option, when upgrade to Safari17(MacOS14). Such as following: For enterprise, there are too many users install app extensions. We want to set these by management tools. We have following questions: For upgrade users, Is there any way or tools to disable this banner or grant "ALLOW" for user automatically? Such as MDM tools. For fresh install user, is there any way to grant per-site permission automatically by MDM tools or others? Thanks. Best wishes eric_wang_mac
Replies
0
Boosts
0
Views
793
Activity
Jul ’23
Get status of Safari App Extension in private mode Safari 17
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.
Replies
1
Boosts
0
Views
845
Activity
Jul ’23
Looking for sample code showing how to use Core Data with a Public CloudKit Database
I'm looking for sample code showing how to use Cre Data with a public CloudKit database. I found WWDC20-10650. However, when I pull the sample project, the project has been updated for WWDC22-10119 (which shows how to use Core Data with a shared CloudKit database.) According to the WWDC20-10650 talk, you interact with the public database differently. Does anyone know where I can find a working sample project that shows how to setup and properly query a public CloudKit database using Core Data? Thanks, Alan
Replies
0
Boosts
0
Views
804
Activity
Jun ’23
Migrating CSS Content Blocker to Web Extension
Hi, In the WWDC23 session “What’s new in Safari extensions,” the presenter says: There are four ways to build Safari extensions: content blockers, share extensions, app extensions, and web extensions. Safari 17 continues to support all of these types, but the future of browser customization lies in web extensions. I take that to mean that content blocker extensions won’t be supported indefinitely, so I would like to get ahead of this by migrating my CSS content blocker to a web extension. However, I don’t see an API which allows for declarative CSS blocking in the same privacy-preserving way. I like the current way of building CSS content blockers because I can block page content without requesting any additional permissions. This provides a very smooth user experience, but I don’t see any way to do this using Safari web extensions. This method of blocking content is even referenced in the video, but only as a way to draw parallels to Declarative Net Request. Did I miss a change that allows me to build a privacy-preserving CSS content blocker in a web extension?
Replies
1
Boosts
1
Views
1.3k
Activity
Jun ’23