v3/examples/mobile/frontend/index.html
Call Go methods from JS and get typed results back.
Greet
+Add
÷Divide
Results appear here…
Go emits a time event every second (Go → JS).
waiting for first tick…
Send a ping to Go; it replies with pong (JS → Go → JS).
Send ping
No pong yet…
Battery, network, theme, screen-lock and low-memory arrive in Go as common: application events (ios:/android: → common:) and are forwarded here by the app. Try toggling charging, airplane mode or dark mode.
Waiting for system events…
Backed by UIAlertController (iOS) / AlertDialog (Android).
InfoWarningErrorQuestion
Dialog results appear here…
CopyPaste
Clipboard value appears here…
Get screen metrics
Screen metrics appear here…
Get device info
Device info appears here…
Native share sheet and opening links in the system browser.
Share…
Open
Keep screen awake
Prevents the display from auto-locking while the app is in front.
Torch (flashlight)
Has no visible effect on a simulator/emulator without a camera flash.
BrightnessRead
Safe-area insetsApp info
PortraitLandscapeAuto
Current: —
Light iconsDark iconsHideShow
AuthenticateSend notification
Biometric uses Face ID / Touch ID / fingerprint, with a device-passcode fallback.
Backed by the iOS Keychain / Android EncryptedSharedPreferences.
SaveLoadDelete
These features are available when running on iOS or Android.
Tactile feedback via the Taptic Engine (iOS) / Vibrator (Android).
LightMediumHeavySuccessWarningErrorSelection
One-shot GPS fix. Prompts for permission on first use.
Get location
Accelerometer
Streams device acceleration (x, y, z) in real time.
Proximity sensor
Reports near/far — cover the top of the device to trigger it.
SpeakStop
StoragePowerNetwork
Watch keyboard insets
Reports the software keyboard's height as it shows and hides.
Block screen capture
Sets FLAG_SECURE on Android; on iOS, detects screenshots and screen recording (it cannot block them).
These features are available when running on iOS or Android.
Capture a photo or record a video with the system camera (prompts for the camera permission on first use).
PhotoVideo
!captured photo
No photo yet — tap Take photo.
Take photo
Keep the app working while backgrounded. On Android this runs a foreground service with an ongoing notification (the process — and your Go goroutines — keep running); on iOS it opens a short background-task window (sustained background work needs a declared UIBackgroundMode).
Foreground service (Android) Begin background task (iOS)
These features are available when running on iOS or Android.
…
Haptic: lightHaptic: mediumHaptic: heavy Scroll enabled Bounce enabled
Drag the page past its edge to feel bounce; turn Scroll off to freeze the page.
VibrateShow toast
Native mobile features are available when running on iOS or Android.