Global Privacy Control (GPC) WebKit API
iOS, iPadOS, visionOS and macOS 27 add a WebKit API that lets apps embedding WKWebView or SwiftUI's WebPage opt navigations into Global Privacy Control, the emerging standard for signalling opt-out of data sharing and cross-context targeted advertising (recognized under California's CCPA). Setting `globalPrivacyControlEnabled` on the WKWebpagePreferences returned from the navigation-policy delegate, or `isGlobalPrivacyControlEnabled` on WebPage.NavigationPreferences, enables `navigator.globalPrivacyControl` and the `Sec-GPC: 1` header for the main frame, subframes and subresources. Example delegate code is given in Swift and Objective-C so apps can wire GPC to their own user setting.
Related posts
- Badging for Home Screen Web Apps
WebKit mediumAdeptWebKit on iOS and iPadOS 16.4 supports the W3C Badging API, but only for web apps added to the Home Screen. It is not exposed in Safari or WKWebView. Badges appear only after the user grants notification permission, and users can still hide badges in Settings without the app being told. The post shows feature detection, requesting and checking notification permission, `navigator.setAppBadge()` and `clearAppBadge()`, and updating badges from a Service Worker on push events. A badge update alone does not satisfy the user-visible notification requirement, and calls from cross-origin frames are ignored.
- Web Push for Web Apps on iOS and iPadOS
WebKit mediumAdeptiOS and iPadOS 16.4 beta 1 adds standards-based Web Push for Home Screen web apps, using the Push API, Notifications API and Service Workers over Apple Push Notification service, with no Apple Developer Program membership required (allow *.push.apple.com). Permission must be requested in response to direct user interaction, and notifications integrate with Focus, which syncs across devices via the newly supported manifest `id` combined with the user-chosen app name. The release also adds the Badging API, lets third-party browsers offer Add to Home Screen through UIActivityViewController with a WKWebView, opens Home Screen bookmarks in the default browser, and generates monogram fallback icons. Sites already using feature detection for Web Push on Safari 16.1 for macOS should work unchanged.
- WebKit Features in Safari 16.1
WebKit mediumAdeptSafari 16.1 brings Web Push to macOS Ventura using the standard Push API, Notifications API and Service Workers, delivered via Apple Push Notification service. Sites that already follow best practices work without an Apple Developer membership, but they need feature detection rather than browser sniffing, and servers must allow push.apple.com subdomains. The release extends passkeys to all Safari 16 platforms, with advice to support cross-device sign-in and conditional mediation for AutoFill. It also adds animated AVIF, Scroll to Text Fragment and window capture via getDisplayMedia, along with CSS, forms and accessibility fixes that bring its Interop 2022 score to 93.3%.
- Enabling the Inspection of Web Content in Apps
WebKit mediumAdeptWKWebView and JSContext now expose an opt-in `isInspectable` property (default false), letting released apps, not just Xcode development builds, have their web content and JavaScript contexts debugged with Safari's Web Inspector. Swift, Objective-C and C (`JSGlobalContextSetInspectable`) examples are given. Inspection can be toggled at runtime, and disabling it closes an active inspector. Unnamed JSContexts all appear as "JSContext" in the Develop menu, so each should get a `name`. Apps linked against the macOS 13.3/iOS 16.4 SDKs lose the old always-inspectable debug behavior and should guard the API with availability checks.
- News from WWDC25: WebKit in Safari 26 beta
WebKit mediumAdeptSafari 26 beta ships 67 new features and 107 improvements, with the version number jumping from 18.x to 26 to match Apple's OS renumbering. Highlights include SVG and data-URL favicons, every Home Screen site opening as a web app by default on iOS/iPadOS, HDR images with the CSS dynamic-range-limit property, and a new SwiftUI-native WebKit API built around WebView and WebPage. visionOS gains the <model> element for interactive USDZ 3D content and immersive video via APMP and HLS. WebGPU with WGSL now ships across platforms, along with CSS anchor positioning and many other web platform additions.