/ti.inappupdate

Android in-app update for Appcelerator Titanium

Primary LanguageJavaOtherNOASSERTION

Android in-app update for Titanium

Example

To test it make sure to read: https://developer.android.com/guide/playcore/in-app-updates/test

var inappUpdate = require("ti.inappupdate");

inappUpdate.addEventListener("update", function(e) {
	console.log("Has update", e.update);
	if (e.update){
		inappUpdate.startUpdate();
	}
});
inappUpdate.checkForUpdate();

Ti.App.addEventListener("resume", function(){
  inappUpdate.resumeUpdate();
})

inappUpdate.addEventListener("resume", function(e) {
  console.log("resuming update");
});
inappUpdate.addEventListener("error", function(e) {
  console.log(e);
});

inappUpdate.addEventListener("done", function(e) {
  console.log("done");
});

Author

Michael Gangolf (@MichaelGangolf / Web)

Buy Me A Coke donate button