Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/m1ga/ti.inappupdate
- Owner: m1ga
- License: other
- Created: 2021-12-07T20:54:45.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T18:32:23.000Z (7 months ago)
- Last Synced: 2024-06-17T20:45:35.011Z (7 months ago)
- Topics: android, inapp-update, titanium-mobile, titanium-module
- Language: Java
- Homepage:
- Size: 360 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)