cordova-plugin-codeplay-in-app-update

0.0.4 • Public • Published

Code Play cordova in-app update

Developed by HTML Code Play and this plugin is used for check your app update through play store and if any new version available download by using immediate or flexible option.

Git URL

https://github.com/merbin2012/cordova-plugin-codeplay-in-app-update

How to Instalation?

Using the Cordova CLI

$ cordova plugin add cordova-plugin-codeplay-in-app-update

Using the phonegap CLI

$ phonegap local plugin add cordova-plugin-codeplay-in-app-update

How to Uninstall?

Using the Cordova CLI

$ cordova plugin rm cordova-plugin-codeplay-in-app-update

Using the phonegap CLI

$ phonegap local plugin rm cordova-plugin-codeplay-in-app-update

Check app update available or not

Syntax

cordova.plugins.inappupdate.isUpdateAvailable(success,fail);

Example

cordova.plugins.inappupdate.isUpdateAvailable(success,fail);

function success(result)
{
 	if(JSON.parse(result))
	{
		alert("App update available");
	}
	else
	{
		alert("No app update available");
	}
}
function fail(result)
{
 console.log(result);
}

Start flexible Update

Syntax

cordova.plugins.inappupdate.update("flexible",function(){},function(){});

Screenshot

Start immediate Update

Syntax

cordova.plugins.inappupdate.update("immediate",function(){},function(){});

Screenshot

Support Platfrom

  • Android

Our Apps

https://play.google.com/store/apps/details?id=com.HTML.AngularJS.Codeplay

https://play.google.com/store/apps/details?id=sql.code.play

https://play.google.com/store/apps/details?id=html.editor.codeplay

https://play.google.com/store/apps/details?id=php.code.play

https://play.google.com/store/apps/details?id=cordova.code.play

https://play.google.com/store/apps/details?id=com.kids.learning.master

Package Sidebar

Install

npm i cordova-plugin-codeplay-in-app-update

Weekly Downloads

20

Version

0.0.4

License

ISC

Unpacked Size

9.57 kB

Total Files

6

Last publish

Collaborators

  • merbin2012