Skip to main content

OpenURL

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Open a URL or deep link on the device — the quickest way to reach a specific screen without tapping through to it. These call app_open_url.

OpenURL​

func (d *Device) OpenURL(ctx context.Context, url string) (string, error)

OpenURL opens a URL or deep link — the quickest way to a specific screen — and returns the app that ended up in the foreground.

Examples​

app, err := dev.OpenURL(ctx, "myapp://cart")
if err != nil {
return err
}
fmt.Println("opened in", app)

On a device​

mobium open https://en.wikipedia.org/wiki/Mobile_app on an Android 15 emulator

mobium open https://en.wikipedia.org/wiki/Mobile_app on an Android 15 emulator