Skip to content

huyttq/WebIntent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is just the wrapper a part of WebIntents plugin by Boris Smus for Phonegap 3.0

Please see full of work in version 2 here https://github.com/phonegap/phonegap-plugins/tree/master/Android/WebIntent

You may want to port the rest in similar way

##Using the plugin##

  1. Add plugin via CLI: phonegap local plugin add https://github.com/huyttq/WebIntent.git
  2. Call this in your app:
	var webIntent = cordova.require("cordova/plugin/CustomWebIntent");
	webIntent.startActivity(
		{
			action: webIntent.ACTION_VIEW,
			url: 'file://' + fileFullPath,
			type: 'application/vnd.android.package-archive'
		},
	  function() {},
	  function() {
		alert('Failed to open URL via Android Intent.');
		console.log("Failed to open URL via Android Intent. URL: " + theFile.fullPath)
	  }
	);

About

WebIntent Android plugin for Cordova 3.x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published