launch_url Action

Use launch_url to launch a URL on the user's device. The URL can point to a webpage or another app.

Example URLs:

  • "https://www.example.com/support"
  • "mailto:support@example.com?subject=Support&body=Error%20E123" (subject and body are percent-encoded)
  • "tel:+12223334444
  • "sms:+12223334444

More info:

Note: Simulator doesn't have email or phone apps so mailto and tel links don't work.

Examples

# Ruby
launch_url("https://www.example.com/support")
#![allow(unused)]
fn main() {
// Rust
use applin::{button, launch_url};
button("Support", [launch_url("https://www.example.com/support")])
}