All Projects → vaenow → Cordova Plugin App Update

vaenow / Cordova Plugin App Update

Licence: mit
App updater for Cordova/PhoneGap

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Cordova Plugin App Update

Ionic Native Mocks
Ionic Native Mocks are designed to be used as placeholders during development for the actual Ionic Native modules.
Stars: ✭ 207 (-28.62%)
Mutual labels:  cordova-plugin, ionic
Cordova Plugin Nativestorage
Cordova plugin: Native storage of variables in Android, iOS and Windows
Stars: ✭ 285 (-1.72%)
Mutual labels:  cordova-plugin, ionic
Cordova Plugin Fingerprint Aio
👆 📱 Cordova Plugin for fingerprint sensors (and FaceID) with Android and iOS support
Stars: ✭ 236 (-18.62%)
Mutual labels:  cordova-plugin, ionic
Ionic4
This repo contains example code for ionic4. Get Step by Step tutorial of this repo examples using https://ampersandacademy.com/tutorials/ionic-framework-4
Stars: ✭ 37 (-87.24%)
Mutual labels:  cordova-plugin, ionic
cordova-plugin-today-widget
Add a today widget app extension target to your cordova project.
Stars: ✭ 51 (-82.41%)
Mutual labels:  ionic, cordova-plugin
Unityionicintegration
A guide to integrating Unity 3D content into an Ionic app and sending messages between them (for Android & iOS)(tested with Vuforia plugin)
Stars: ✭ 94 (-67.59%)
Mutual labels:  cordova-plugin, ionic
ionic-hockeyapp
Need HockeyApp in your Ionic application, add this package!
Stars: ✭ 19 (-93.45%)
Mutual labels:  ionic, cordova-plugin
cordova-plugin-android-window-background
Simple Cordova plugin to set Android window background on start-up 🎨 🍭
Stars: ✭ 15 (-94.83%)
Mutual labels:  ionic, cordova-plugin
cordova-plugin-apkupdater
This plugin allows your Android app to download and install compressed updates without the Google Play Store.
Stars: ✭ 46 (-84.14%)
Mutual labels:  ionic, cordova-plugin
cordova-plugin-flurryanalytics
Adds support for all that Flurry Analytics flavored goodness to your Cordova based apps
Stars: ✭ 23 (-92.07%)
Mutual labels:  ionic, cordova-plugin
Google Login With Ionic Framework
Ionic example app of how to add Google Plus authentication into an Ionic Framework app. Add google login to your ionic app!
Stars: ✭ 24 (-91.72%)
Mutual labels:  cordova-plugin, ionic
scanbot-sdk-example-ionic
Scanbot scanner SDK example app for Ionic with Cordova.
Stars: ✭ 24 (-91.72%)
Mutual labels:  ionic, cordova-plugin
Cordova Admob Pro
🔥 Cordova Plugin for Google AdMob, DFP, ADX. Easy monetization using mobile Ad, with single line of JavaScript. Compatible with Cordova CLI, Inoic, PhoneGap Build, etc.
Stars: ✭ 690 (+137.93%)
Mutual labels:  cordova-plugin, ionic
Awesome Ionic
😎 A curated list of amazingly awesome Ionic libraries, resources and solutions.
Stars: ✭ 1,340 (+362.07%)
Mutual labels:  cordova-plugin, ionic
Ionic Native
Native features for mobile apps built with Cordova/PhoneGap and open web technologies. Complete with TypeScript support.
Stars: ✭ 2,129 (+634.14%)
Mutual labels:  ionic, cordova-plugin
example-cordova-code-push-plugin
Ionic + Cordova Code Push Plugin Example
Stars: ✭ 45 (-84.48%)
Mutual labels:  ionic, cordova-plugin
ionic-native-sms-retriever-plugin-master
Cross-platform plugin for Cordova / PhoneGap to Retrieve SMS. Available for Android.
Stars: ✭ 16 (-94.48%)
Mutual labels:  ionic, cordova-plugin
ionic-signature-pad
Ionic plugin to input singnature pad
Stars: ✭ 15 (-94.83%)
Mutual labels:  ionic, cordova-plugin
Graphql To Mongodb
Allows for generic run-time generation of filter types for existing graphql types and parsing client requests to mongodb find queries
Stars: ✭ 261 (-10%)
Mutual labels:  update
Routeros Scripts
a collection of scripts for Mikrotik RouterOS
Stars: ✭ 270 (-6.9%)
Mutual labels:  update

travis

NPM

cordova-plugin-app-update

App updater for Cordova/PhoneGap

Demo

Try it yourself:

Just clone and install this demo. cordova-plugin-app-update-DEMO 🎉

  • 如果喜欢它,请别忘了给我一颗鼓励的星
  • Support me a Star if it is necessary. 👍

Preview

enter image description here

enter image description here

Install

Latest published version on npm (with Cordova CLI >= 5.0.0)

"cordova-android": "6.3.0"

cordova plugin add cordova-plugin-app-update --save

Usage

  • Simple:
var updateUrl = "http://192.168.0.1/version.xml";
window.AppUpdate.checkAppUpdate(onSuccess, onFail, updateUrl);
  • Verbose
var appUpdate = cordova.require('cordova-plugin-app-update.AppUpdate');
var updateUrl = "http://192.168.0.1/version.xml";
appUpdate.checkAppUpdate(onSuccess, onFail, updateUrl);
  • Auth download MORE
appUpdate.checkAppUpdate(onSuccess, onFail, updateUrl, {
    'authType' : 'basic',
    'username' : 'test',
    'password' : 'test'
})
  • Skip dialog boxes
appUpdate.checkAppUpdate(onSuccess, onFail, updateUrl, {
    'skipPromptDialog' : true,
    'skipProgressDialog' : true
})

versionCode

You can simply get the versionCode from typing those code in Console

var versionCode = AppVersion.build
console.log(versionCode)  // 302048
versionName versionCode
0.0.1 18
0.3.4 3048
3.2.4 302048
12.234.221 1436218

server version.xml file

<update>
    <version>302048</version>
    <name>name</name>
    <url>http://192.168.0.1/android.apk</url>
</update>

checkAppUpdate code

    /**
     * 对比版本号
     */
    int VERSION_NEED_UPDATE = 201; //检查到需要更新; need update
    int VERSION_UP_TO_UPDATE = 202; //软件是不需要更新;version up to date
    int VERSION_UPDATING = 203; //软件正在更新;version is updating

    /**
     * 版本解析错误
     */
    int VERSION_RESOLVE_FAIL = 301; //版本文件解析错误 version-xml file resolve fail
    int VERSION_COMPARE_FAIL = 302; //版本文件对比错误 version-xml file compare fail

    /**
     * 网络错误
     */
    int REMOTE_FILE_NOT_FOUND = 404;
    int NETWORK_ERROR = 405;

    /**
     * 没有相应的方法
     */
    int NO_SUCH_METHOD = 501;

    /**
     * Permissions
     */
    int PERMISSION_DENIED = 601;

    /**
     * 未知错误
     */
    int UNKNOWN_ERROR = 901;

Languages

  • 🇨🇳 zh
  • 🇺🇸 en
  • 🇩🇪 de
  • 🇫🇷 fr
  • 🇵🇹 pt
  • 🇧🇩 bn
  • 🇵🇱 pl
  • 🇮🇹 it
  • 🇪🇸 es
  • 🇷🇺 ru
  • 🇰🇷 ko

Platforms

Android only

License

MIT

❄️ 🍻

  • Please let me know if you have any questions.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].