Skip to content

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

License

Notifications You must be signed in to change notification settings

eonardol/CustomUrlLauncher-PhoneGap-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published