@@ -330,15 +330,23 @@ shell; the bridge contract is owned by the mobile app (`docs/HYBRID-SHELL.md`,
330330 change, and the shell's cancelable ` objectstack-native:navigate ` window event moves
331331 the router (in-app paths only) instead of reloading the page. Outside the shell it
332332 installs nothing.
333+ - The same hook answers the shell's ` objectstack-native:connectionRemoved ` window
334+ event (` NATIVE_CONNECTION_REMOVED_EVENT ` ), sent when the user removes this
335+ connection in the shell: it calls ` event.waitUntil() ` with the promise its optional
336+ ` onConnectionRemoved ` returns (unregister the device's push token under the page's
337+ own session), or with one already resolved when the option is omitted.
333338- ` ready() ` means "the page has painted its own UI", which may be a loading fallback,
334339 such as an auth guard's spinner while the session is read. The shell lifts its
335340 loading cover on it, so the cover hands over to that spinner instead of staying up
336341 through the session round-trip.
337- - ` nativeGetPushToken ` , ` nativeHaptic ` , ` nativeOpenExternal ` , ` nativeNavigate ` and
338- ` nativeResetServer ` check ` has(capability) ` and that the method exists before
339- calling. They never throw: each resolves ` { status: 'unavailable' } ` without the
340- capability, ` { status: 'ok', value } ` on success, or
341- ` { status: 'failed', code, message } ` when the shell refuses the call.
342+ - ` nativeGetPushToken ` , ` nativeHaptic ` , ` nativeOpenExternal ` , ` nativeNavigate ` ,
343+ ` nativeResetServer ` and ` nativeShowConnectionSwitcher ` check ` has(capability) ` and
344+ that the method exists before calling. They never throw: each resolves
345+ ` { status: 'unavailable' } ` without the capability, ` { status: 'ok', value } ` on
346+ success, or ` { status: 'failed', code, message } ` when the shell refuses the call.
347+ - ` nativeHostCan(host, method) ` is that same check, for a control that picks its
348+ native or web path before it renders (the header's organization button opens the
349+ shell's switcher this way).
342350
343351``` tsx
344352import { nativeHaptic } from ' @object-ui/mobile' ;
0 commit comments