Device.openURL
Functional API
openURLYou can use the same feature with it as well.
Feature description
Opens the specified URL in the device's default browser or a related app.
Type
Device.openURL(url: string): Promise<void>;Params
This is the URL to open.
Response
None.
Example code
import { Device } from "@apps-in-toss/web-framework";
document.getElementById("open-link").addEventListener("click", () => {
Device.openURL("https://google.com");
});Was this helpful?