launchExternal Method

This function will open a url in the device's native browser application.

intel.xdk.device.launchExternal(url);

Description:

This function will open an url in the device's native browser application. For example, on an iOS device, the URL will open in a Safari window.

It can also be used to launch device services (such as SMS, email, or twitter) using known protocol handlers.

Available Platforms:

Parameters:

url: The URL for the browser window to open.

Example:


//Open a URL example
intel.xdk.device.launchExternal("http://www.google.com");

// Email example
intel.xdk.device.launchExternal('mailto:my@emailaddress.com?subject=email%20Me&body=test%20test%20test');

// Twitter example
intel.xdk.device.launchExternal('twitter://post?message=Message%20Tex');

// SMS example
intel.xdk.device.launchExternal('sms://7175551212');
            
For more complete information about compiler optimizations, see our Optimization Notice.