I'm experiencing a critical regression on iOS 26 with a Notification Content Extension. extensionContext.open(uri) fails to open external URLs with LSApplicationWorkspaceErrorDomain Code=115 under specific conditions.
Problem: When the main app is killed, and a rich push notification is received and expanded, tapping a button (specifically one with a transparent background, cornerRadius=0, clipsToBounds=false) fails to open its associated URL.
Key Details:
iOS 26 Only: Works perfectly on iOS 17, 18, etc.
App Killed State Only: Works if the app is running (foreground/background).
Works on Subsequent Notifications: The link will open if a second notification is received.
LSApplicationQueriesSchemes: Confirmed to be correctly configured in the main app's Info.plist and present in the app bundle.
Delay No Help: Adding a 1s delay before open(uri) does not fix it.
My os_log statements confirm the button tap
// ... (other cases) ... case .link(let uri): // os_log confirms this block is executed on button tap os_log("Attempting to open URL: %{public}@", uri.absoluteString) guard let extensionContent = extensionContext else { os_log("ERROR: extensionContext is nil") // ... (handle error) ... return } // This is where the failure occurs // Tested with 1s delay, still fails extensionContent.open(uri) { success in if success { os_log("URL opened successfully: %{public}@", uri.absoluteString) } else { // This 'else' branch is always hit, and system logs show Code=115 os_log("Failed to open URL: %{public}@", uri.absoluteString) } // ... (other completion logic) ... } // ... (other cases) ...