Skip to content

System capabilities ​

Most system capabilities live in github.com/tangoui/tango/sys/<package>. APIs generally take a *tango.App or operate on a *tango.Surface. Call them from any goroutine. Native callbacks run on the main thread. Unsupported operations return ErrUnsupported, and operations that need a running app can return tango.ErrNotRunning after it exits. On Android, use a separate goroutine for operations that wait for the user, such as dialogs, sharing or permission requests. Threading

Desktop backends are verified on macOS hardware and covered by CI smoke tests on Windows and Linux. Mobile capabilities are experimental. iOS has run in simulators and on one iPhone 12 Pro, and Android has run in emulators. Platform support

Desktop ​

PackagePurposeJS module
clipboardText, PNG images and file listsClipboard
dialogMessage, open and save dialogsDialog
notifySystem notifications and click handlingNotify
hotkeyGlobal and in-page shortcutsHotkey
screenDisplays, primary display and display at a pointScreens
themeLight/dark mode, accent color and page synchronizationTheme
shellOpen URLs and files or reveal them in the file managerShell
appctlVisibility, badge, progress, attention and Dock iconApp
autostartStart at login
envOS, architecture, build and WebView versionApp.info
recentRecently opened documents
singleSingle instance and argument forwardingApp.onSecondInstance
windowstateRestore window geometry
powerPower status and idle-sleep prevention, with sleep/wake callbacks on desktop
menuApp, window and context menusMenu
trayTray icons

JS runtime capabilities and permissions

Mobile ​

PackagePurposetan.json permission
permissionCheck and request runtime permissionsAs requested
shareNative share sheet, also available on macOS
hapticsHaptic feedback
safeareaSafe-area insets and CSS variables
orientationRead and lock the screen orientation
biometricFace ID, Touch ID or BiometricPrompt. Also supports macOSbiometric
securestoreSmall secrets in Keychain or Keystore. Also supports macOS
mediaPick photos or videos, or take a photocamera for capture
locationOne-shot and continuous locationlocation
pushAPNs or FCM push notificationsnotifications

Permission declarations

Other capabilities include mobile background tasks (sys/background), device settings (sys/device), widgets (sys/widget) and in-app purchases (sys/purchase), as well as network status (sys/network), tray flyouts (sys/flyout), launch shortcuts (sys/jumplist), printing (sys/print) and pseudo-terminals (sys/pty). Go API reference

Services ​

The service package binds Go values to application startup and shutdown, with optional IPC bindings. service/paths finds standard app directories, service/kv provides a concurrent key-value store, service/log provides rotating logs, and service/fileserver exposes files under a resource prefix. service/updater implements signed desktop updates. Packaging, signing & updates

Released under the MIT License