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:
- https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html
- https://developer.android.com/guide/components/intents-common.html
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")]) }