CustomUrlLauncher

This plugin allows you to launch another app via custom url (eg. anotherapp://?foo=321) in a new task.
Leonardo Valenti1.0.00
platforms: android
$ cordova plugin add it.eonardol.plugins.customurllauncher

CustomUrlLauncher-PhoneGap-Plugin

Cordova plugin for Android to launch another application via custom url in a new task.

Installation (automatically)

You can install the plugin via CLI:

$ phonegap local plugin add https://github.com/eonardol/CustomUrlLauncher-PhoneGap-Plugin.git

or

$ cordova plugin add https://github.com/eonardol/CustomUrlLauncher-PhoneGap-Plugin.git

Usage

window.plugins.customurllauncher.launch("anotherapp://foobar?foo=123&bar=321", function(){
  console.log("success!");
}, function(e){
  console.log("error: " + e);
});

window.plugins.customurllauncher.canLaunch("anotherapp://foobar?foo=123&bar=321", function(){
  console.log("success!");
}, function(e){
  console.log("error: " + e);
});

Credits

Inspired by nchutchind's App-Launcher-Cordova-Plugin