showHeader | value: boolean | Show or hide the native header |
splash.preventAutoHide | — | Keep the launch splash until splash.hide (8 s after load at most) |
splash.hide | — | Lift the launch splash |
header.set | title?, backgroundColor?, textColor?, action? | Customize the native header |
closeApp | — | Close the app |
backGesture.set | enabled: boolean | Turn the WebView’s own back swipe (iOS) off or on |
dialog.isAvailable | — | Which system dialogs the shell can open (actionSheet: iOS only, alert) |
dialog.actionSheet | id, title?, message?, options: { label, destructive? }[], cancelLabel? | The real iOS action sheet; answered with index (-1 cancelled, -2 not available) |
dialog.alert | id, title, message?, buttons: { label, style? }[], cancelable? | The real system alert (Android: up to 3 buttons); answered with index |
datePicker.isAvailable | — | Whether the shell has its own date picker; answered with available |
datePicker.open | id, mode: 'date' | 'time' | 'datetime', value?, min?, max?, title?, doneLabel?, cancelLabel? | The OS date/time picker (iOS sheet, Android Material dialogs). Values are <input> values (2026-10-17, 14:30, 2026-10-17T14:30); answered with value (null when cancelled) |
menu.isAvailable | — | Whether the shell can show its own menu (Android only); answered with available |
menu.show | id, rect: { x, y, width, height }, items: { label, destructive?, disabled? }[] | The Material dropdown anchored to rect (viewport CSS px); answered with index (-1 dismissed, -2 not available, which is always the case on iOS) |
haptics.pattern | steps: { kind?, style?, delay? }[] | A short haptic sequence (at most 8 steps; delay at most 600 ms), timed by the shell |
accent.get | — | The OS accent colour (desktop); answered with an accent message |
menu.set | items: ({ id, label, shortcut?, enabled?, checked? } | { separator: true })[] | The app’s own menu in the desktop menu bar (macOS) while it is in front; [] removes it |
auth.request | — | Ask for the current token |
platform.get | — | Ask for OS and host kind |
language.get | — | Ask for the UI language |
clipboard.write | text | Write to the clipboard |
clipboard.read | — | Read the clipboard |
camera.capture | quality?, allowsEditing? | Take a photo with the system camera |
camera.isAvailable | — | Does the shell have a camera screen? |
camera.open | mode?, facing?, maxDurationMs?, maxFileSize?, title?, hint?, allowGallery?, audio?, deliver? | Open the shell’s camera screen |
qr.scan | formats?, title?, hint?, allowGallery? | Open the QR / barcode reader |
player.isAvailable | — | Does the shell have a video player, and which formats? |
player.open | src, format?, title?, subtitle?, poster?, startAt?, autoplay?, loop?, muted?, live?, closeOnEnd?, progressInterval?, id? | Open the shell’s video player |
player.close | — | Close the open player |
imagePicker.open | multiple?, quality? | Open the gallery |
statusBar.set | style?, backgroundColor?, hidden? | Style the status bar |
navigationBar.set | style?, backgroundColor?, hidden? | Style the Android navigation bar |
storage.set | key, value | Save a value |
storage.get | key | Read a value |
storage.remove | key | Delete a value |
storage.keys | — | List keys |
storage.clear | — | Delete all of this app’s values |
secureStorage.set | key, value | Save an encrypted string |
secureStorage.get | key | Read an encrypted string |
secureStorage.remove | key | Delete an encrypted string |
notifications.requestPermission | — | Ask for notification permission |
notifications.schedule | title, body?, seconds?, repeats?, data?, sound? | Schedule a local notification |
notifications.cancel | id | Cancel one |
notifications.cancelAll | — | Cancel all |
notifications.getBadgeCount | — | Read the badge |
notifications.setBadgeCount | count | Set the badge (0 clears) |
notifications.getInbox | — | Read this app’s inbox |
notifications.inbox.markRead | id? | Mark one, or all, read |
share.open | title?, message?, url? | Share text or a link |
share.file | uri, mimeType?, dialogTitle? | Share a device file |
share.content | data, encoding?, fileName, mimeType?, dialogTitle? | Share a file the page generated |
haptics.impact | style? | Impact feedback |
haptics.notification | style? | Outcome feedback |
haptics.selection | — | Selection feedback |
biometrics.isAvailable | — | Check biometrics |
biometrics.authenticate | promptMessage?, cancelLabel?, fallbackLabel?, disableDeviceFallback? | Authenticate |
passkey.isAvailable | — | Check passkey support |
passkey.create | challenge, user?, rp?, pubKeyCredParams?, excludeCredentials?, authenticatorSelection?, attestation?, timeout? | Register a passkey |
passkey.get | challenge, allowCredentials?, userVerification?, timeout? | Sign with a passkey |
deeplink.getInitial | — | Ask for the launch link |
deeplink.open | slug?, path?, url?, params? | Open another app, or route in this one |
appMessage.isAvailable | — | Ask whether the shell carries app messages |
appMessage.send | id, to, action, data?, launch?, focus?, returnOnReply?, timeoutMs? | Send a message to another app |
appMessage.ready | actions: string[] | This page now handles messages (held ones are delivered) |
appMessage.reply | id, data?, error? | Answer a received message |
crossApp.isAvailable | — | Ask whether the shell can show a consent screen for shares |
crossApp.request | id, scopes: string[] | Open the consent screen for these shares |