chore(cli): enable iOS scenes lifecycle by default - #15254
Conversation
Package Changes Through bff1ef7There are 11 changes which include tauri with minor, @tauri-apps/api with minor, tauri-macos-sign with patch, tauri-build with minor, tauri-bundler with minor, @tauri-apps/cli with minor, tauri-cli with minor, tauri-runtime with minor, tauri-runtime-wry with minor, tauri-utils with minor, tauri-plugin with minor Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
|
follow-up for #14484 |
|
am i stupid or is "enable iOS scenes lifecycle" and "UIApplicationSupportsMultipleScenes" not the same? Do you have any sources for that? I see that the scenes framework will be required but also requiring every app to support multiple scenes/windows sounds insane to me (but then again, we're talking about apple) |
|
Also, how does this affect devs that did not adapt to our multi-window api? Does tauri handle the implications internally? |
|
Here's the relevant documentation: There are two ways to migrate to the scene-based life cycle:
Supporting multiple scenes is optional, so UIApplicationSupportsMultipleScenes does not have to be set to true unless the app supports two or more scenes simultaneously. |
|
we use the scene lifecycle (application(_:configurationForConnecting:options:) method) when the plist property is enabled:
if you're only creating a single view, nothing will change - but the OS will show a "create new window" entry when you press the app icon on iPad, and well you won't handle the event so it'll open a blank window |
This sounds quite bad honestly considering that we're now forcing that "optional" property on everyone. Can't we register the delegate method regardless of the info plist value and give devs the option whether or not they want to support multiple scenes? |
|
It would be best to allow devs to choose whether to support multiple scenes. Implementing the application(_:configurationForConnecting:options:) method in the app delegate should work regardless of whether multiple scenes are supported. |
I'll give it a try later, let's pause this PR in the meantime. |
this will be enforced on iOS 27