Skip to content

iOS / tvOS: deliver opened URLs via scene:openURLContexts: - #8649

Merged
danoli3 merged 1 commit into
openframeworks:tvos-handleopenurl-unavailablefrom
danoli3:ios-scene-openurl-contexts
Nov 5, 2026
Merged

danoli3 merged 1 commit into
openframeworks:tvos-handleopenurl-unavailablefrom
danoli3:ios-scene-openurl-contexts

Conversation

@danoli3

@danoli3 danoli3 commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Stacked on #8648.

iOS and tvOS now use the iOS 13+ / 26+ URL entry point: UIWindowSceneDelegate scene:openURLContexts:.

What UIKit calls

API iOS tvOS
scene:openURLContexts: (iOS 13+, tvOS 13+; required on 26+) yes yes
application:openURL:options: (iOS 9+, deprecated 26) yes yes
application:handleOpenURL: (iOS 2–9) deprecated unavailable

#8643 already named ofxiOSSceneDelegate in both Info.plists. This PR makes that method the handler.

Change

  • ofxiOSSceneDelegate scene:openURLContexts: forwards to application:openURL:options: when the app delegate implements it, otherwise ofxiOSAlerts.launchedWithURL. It does not call handleOpenURL:.
  • ofxiOSAppDelegate implements application:openURL:options: (same body as tvOS in tvOS: stop calling application:handleOpenURL: (unavailable) #8648). iOS handleOpenURL: stays as a wrapper for pre-scene UIKit.

Merge #8648 first; this PR retargets onto master after that.

UIKit on iOS 13+ / 26+ and tvOS 13+ / 26+ sends URLs to
UIWindowSceneDelegate scene:openURLContexts:, not
application:handleOpenURL: (unavailable on tvOS, deprecated on iOS).

ofxiOSSceneDelegate is already that scene delegate. Stop forwarding to
handleOpenURL:. Call application:openURL:options: when the app delegate
implements it, otherwise ofxiOSAlerts.launchedWithURL.

ofxiOSAppDelegate now implements application:openURL:options: the same
way ofxtvOSAppDelegate does. handleOpenURL: remains on iOS only as a
wrapper for pre-scene UIKit.
@danoli3
danoli3 changed the base branch from master to tvos-handleopenurl-unavailable November 5, 2026 03:32
@danoli3
danoli3 merged commit 04e7a53 into openframeworks:tvos-handleopenurl-unavailable Nov 5, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant