gogo123150 / phonegap-plugin-apploader

Phonegap plugin which downloads zip files, unzips them, and runs the contents in the Phonegap webview.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AppLoader Phonegap Plugin

Downloads zip files, unzips them, and runs the contents in the Phonegap webview.

Mostly written by Shazron Abdullah.

Installation

plugman install --platform ios --plugin https://github.com/wildabeast/phonegap-plugin-apploader.git --project ./IOSProject

Usage

Fetch a zip file:

navigator.apploader.fetch('https://mysite.com/phonegap/www.zip', successCallback, failureCallback);

Then launch it in the Phonegap webview:

navigator.apploader.launch(failureCallback);

Full example:

navigator.apploader.fetch('https://mysite.com/phonegap/www.zip', function() {

	navigator.apploader.launch(function() {
		console.log('failed to launch');
	}); 

}, function() {
	console.log('failed to download');
});

About

Phonegap plugin which downloads zip files, unzips them, and runs the contents in the Phonegap webview.


Languages

Language:C 53.4%Language:Objective-C 29.3%Language:C++ 6.3%Language:Java 6.0%Language:Objective-C++ 4.7%Language:JavaScript 0.3%