Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m1ga/ti.inappupdate

Android in-app update for Appcelerator Titanium
https://github.com/m1ga/ti.inappupdate

android inapp-update titanium-mobile titanium-module

Last synced: about 2 months ago
JSON representation

Android in-app update for Appcelerator Titanium

Awesome Lists containing this project

README

        

# Android in-app update for Titanium

## Example

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

```js
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