QNimate

  • CoursesVideos
  • WP PremiumPlugins
  • DemosLab
  • Home
  • QIdea
  • QTrack
Home Carbon Ads Install or Run a App using Intel XDK

Install or Run a App using Intel XDK

This post is a part 14 of Intel XDK Complete Tutorial post series.

With just one line of code you can install or run an application

Running or Installing Android app

//Parameters: app name, protocol handler, app location, bundle id
intel.xdk.device.runInstallNativeApp('Boom Town', 'applab.boomtown://', 'market://details?id=com.intel.xdk.applab.boomtown', 'com.intel.xdk.applab.boomtown');

Running or Installing iOS app

//Parameters: app name, protocol handler, app location
intel.xdk.device.runInstallNativeApp('Old Lady Puzzle', 'oldemo.puzzle://', 'itms-apps://itunes.apple.com/us/app/old-lady-puzzle/id525537202?mt=8');

If app is not already installed then the above code installs and runs the app. If its already installed then it just runs the app.

This function only works inside event handlers. So you can’t just call it whenever you like to. For example:

document.addEventListener("intel.xdk.device.ready",function(){
            intel.xdk.device.runInstallNativeApp('Old Lady Puzzle', 'oldemo.puzzle://', 'itms-apps://itunes.apple.com/us/app/old-lady-puzzle/id525537202?mt=8');
},false);

Make sure you have also added Intel XDK Device plugin in your app.

Nov 6, 2014Narayan Prusty
Launch Default Browser using Intel XDKURL Tracking Parameters and Its Negative Impact

Leave a Reply Cancel reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

Narayan Prusty

I am a software engineer specialising in Blockchain, DevOps and Go/JavaScript. This is my personal blog where I write about things that I learn and feel interesting to share.

8 years ago Cordova
Share this
0
GooglePlus
0
Facebook
0
Twitter
0
Linkedin
Related Articles
  • Launch Browser Inside Intel XDK App
  • Sending SMS using Intel XDK
  • Playing Beep Sound using Intel XDK
  • Intel XDK Copy to Clipboard
  • Launch Default Browser using Intel XDK
Our Sponsor
My Books

2014 - 2015 © QNimate
All tutorials MIT license