vaenow / cordova-plugin-app-update Goto Github PK
View Code? Open in Web Editor NEWApp updater for Cordova/PhoneGap
License: MIT License
App updater for Cordova/PhoneGap
License: MIT License
小米5.0.1版本不论是什么都显示更新,版本低和高都会显示更新。
Hi,
first of all thanks for this great, easy Plugin!
Is it somehow possible to add authentication to this (Basic / Basic Header)? I tried with https://user:pass@url/ but it won't work.
Since this is used for updating apps "off" the market, I'd find this addition quite handy... :)
Thanks in advance,
Cheers Chris
请问在添加cordova-plugin-app-update这个插件后,然后复制你demo里面的内容到新建的项目中,我还需要有什么具体的操作吗?[email protected],这是我的联系方式,希望可以得到您的帮助
support for ios
I am getting error
platforms\android\build\intermediates\manifests\full\armv7\debug\AndroidManifest.xml:55: error:
Error: No resource found that matches the given name (at 'resource' with value '@xml/provider_paths').
cli packages: (C:\Projects\flymark-offline\flymark-judging\node_modules)
@ionic/cli-utils : 1.12.0
ionic (Ionic CLI) : 3.12.0
global packages:
cordova (Cordova CLI) : 7.0.1
local packages:
@ionic/app-scripts : 3.0.0
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.7.1
System:
Android SDK Tools : 26.1.1
Node : v6.11.2
npm : 5.2.0
OS : Windows 10
Misc:
backend : legacy
npm里面应该不是最新的版本.没有兼容7.0的代码...请发布一下..谢谢了
I get allways a success. Even if I change the version in the version.xml file. Any clue or idea?
I changed version from 100008 to 200008 just for testing.
My js code is:
var appUpdate = cordova.require('cordova-plugin-app-update.AppUpdate');
appUpdate.checkAppUpdate(function() { alert('Success'); }, function() { alert('Fail'); }, "http://xxx/updates/version.xml");
Hello,
is it possible update without confirm? I need to update without user interaction.
Hi,
I am using Ionic version 1 with angularJS.
My Code:-
I am reading the version from a XML file in my server and if there is any change in version then i am updating. that will come in later part of code, but can u please tell me what i am doing wrong?
var updateUrl = "C:/Users/pratik_pattanayak/version.xml";
this.AppUpdate.checkAppUpdate(updateUrl).then(function (response){
console.log(response);
})
Hi.
hope his email is correct and you have time to answer.
Great job on the plugin. Thank you
I have a problem with it, it checks the version and download the app correctly, but
after installation the app is just the old version before download. so it cause an infinite loop.
server version : 3.2.4
installed version : 0.3.2
could you please help?
This is my xml path (http://www.derekmar.cn:8080/arcgisApp/Update/AppUpdateOwner.xml),.
And this is my AndroidManifest.xml
I'm using your plugin but it seems that there is no respond. I'm not sure what I've done wrong
D:\vsdemo\UpdateAppDemo\UpdateDemo\platforms\android\src\com\vaenow\appupdate\android\DownloadHandler.java:14: ����: ���
��android.support.v4.content������
import android.support.v4.content.FileProvider;
^
D:\vsdemo\UpdateAppDemo\UpdateDemo\platforms\android\src\com\vaenow\appupdate\android\GenericFileProvider.java:3: ����: ��
���android.support.v4.content������
import android.support.v4.content.FileProvider;
^
D:\vsdemo\UpdateAppDemo\UpdateDemo\platforms\android\src\com\vaenow\appupdate\android\GenericFileProvider.java:9: ����: �Ҳ
�������
public class GenericFileProvider extends FileProvider {
^
����: �� FileProvider
D:\vsdemo\UpdateAppDemo\UpdateDemo\platforms\android\src\com\vaenow\appupdate\android\DownloadHandler.java:96: ����: �Ҳ�
������
:compileDebugJavaWithJavac FAILED
BUILD FAILED
Total time: 18.571 secs
Uri uri = FileProvider.getUriForFile(mContext, "com.vaenow.appupdate.android.provider", apkFile);
^
����: ���� FileProvider
�: �� DownloadHandler
ע: ijЩ�����ļ�ʹ�û����ѹ�ʱ�� API��
ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
4 ������
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
Since MOUNT_UNMOUNT_FILESYSTEMS access is denied the app is getting crashed after downloading the update(Android version 7.1.1 API-25)
Hello,
sry for my english.
I install plugin http://ionicframework.com/docs/v2/native/appupdate/ to ionic2 app
and i add row in app.components.ts
import { AppUpdate } from 'ionic-native';
and start ionic serve
and show me error Module '"d:/androidapp/testAppUpdate/node_modules/ionic-native/dist/es5/index"' has no exported member 'AppUpdate'.
VAENOW 你好,
我现在的遇到的麻烦是,他还在检查更新但是旧的程序已经开始运行了。有没有什么function类似onCheckComplete,就是当你检查完了以后才能运行下一步?
我测试了onFail和onSuccess这两个callback,测试结果好像是只有在没法连接服务器的时候才会call onFail, 不管有没有更新都会显示onSuccess。有没有什么方法能知道到底需不需要更新呢?
谢谢!
如果在 Google Play Store 下載APP,預設存於共用的 Download 目錄(大家都能看見的),而且沒有容量限制,只要手機空間足夠就行。
我們問題是:尊駕開發的 App Update (plugin) 啟動下載時,是否貯存於 APP 自身的目錄中(類似 file:///data/user/0/... ) ?
這代表着,APP下載後,用戶不能自行到共用的 Download 目錄手動安裝 APP (或取走那個 apk)。
Willow (上次忘記留名字)
Hi,
nice plugin, it works very well.
Is there an option to let Auto Update be executed immediately, without the need by the user to tap on "Update" button?
I would like to let my app autoupdate by itself while nobody is using it.
Thankyou.
Carlo
First of all thanks for awesome library, I need help how I can show in app icon and in Setting Activity with Count Notification (Push Notification) associate with this library when new app update is available?
If the user cancels the installation of the update, the update-progress popup gets displays.
Furthermore, if the user hides this popup (by clicking on 'Update in background') and the application calls your plugin another time, the progress-popup will be displayed instead of the normal popup. The normal Update-Popup gets only displayed, if the user quits the application and restarts it.
Best Regards
Andreas
Hello is it possible to change plugin language for French ?
I saw the XML but i dont wanna have to change the xml in node_modules!
如提目:執行這一行後,啟動了下載程序
window.AppUpdate.checkAppUpdate(onSuccess, errorHandler, updateUrl);
但是新的 apk 沒有蓋過舊的 apk,所以重新啟動後仍是舊版。
Hello, thanks for this work ! How i can change the language without passing by Java (Just with config.xml or Js) ?
It's worker very well until yesterday
logs:
12-13 10:54:20.155 19778 19847 E AndroidRuntime: FATAL EXCEPTION: pool-1-thread-2
12-13 10:54:20.155 19778 19847 E AndroidRuntime: Process: com.yufu.intfire, PID: 19778
12-13 10:54:20.155 19778 19847 E AndroidRuntime: java.lang.NumberFormatException: null
12-13 10:54:20.155 19778 19847 E AndroidRuntime: at java.lang.Integer.parseInt(Integer.java:483)
12-13 10:54:20.155 19778 19847 E AndroidRuntime: at java.lang.Integer.valueOf(Integer.java:611)
12-13 10:54:20.155 19778 19847 E AndroidRuntime: at com.vaenow.appupdate.android.CheckUpdateThread.getVersionCodeRemote(CheckUpdateThread.java:148)
12-13 10:54:20.155 19778 19847 E AndroidRuntime: at com.vaenow.appupdate.android.CheckUpdateThread.run(CheckUpdateThread.java:57)
12-13 10:54:20.155 19778 19847 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
12-13 10:54:20.155 19778 19847 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
12-13 10:54:20.155 19778 19847 E AndroidRuntime: at java.lang.Thread.run(Thread.java:760)
12-13 10:54:20.160 2626 2896 I WtProcessController: Receive am_crash event for pid: 19778 pkg = com.yufu.intfire
xml file:
<update>
<version>10700</version>
<name>fire-app</name>
<url>https://I do not want you see the apk dowload path.apk</url>
</update>
Hey,
When I try to install another application that uses the plugin, android returns this message:
Android App Not Install.
An existing package by the same name with a conflicting signature is already installed
Some tip?
There seems to be no way to modify the UI-Text strings from Javascript or to select a local version for the strings.
您好,設定完成之後如下兩張圖片
最後都會卡在「正在更新」
請問我可以使用什麼方式知道是發生什麼錯誤?
感謝您
https://drive.google.com/open?id=0Bx0cPcflw0seNFB6VUpiQ1NVVzg
https://drive.google.com/open?id=0Bx0cPcflw0sebEIyRjloaFplWWM
app有好几个插件依赖这个插件cordova-plugin-app-version(http://ionicframework.com/docs/native/app-version/)
你的这个更新插件有依赖另外一个叫cordova-plugin-appversion的插件,两个插件同时存在会冲突,导致app闪退,能不能把你的依赖改成官方这个
I set up everything and now when I open my App, I get the notification that there is a new update. When I press download
, the progress window opens but dissappears instantly afterwards. Any clues?
My version.xml on my server:
<update>
<version>28</version>
<name>DBG Vertretungsplan</name>
<url>http://voakie.com/dbg/dl/android.apk</url>
</update>
Snippet from my index.js:
console.log("Version: "+AppVersion.build+" - "+AppVersion.version);
var updateUrl = "http://voakie.com/dbg/dl/version.xml";
window.AppUpdate.checkAppUpdate(onSuccess, onFail, updateUrl);
onSuccess
and onFail
are assigned. onSucces
is always being called.
Thanks in advance!
can't build apk when use this plugin
This plugin is awesome and does work fine in many android devices. I am having issues only with multiples Galxy S7 devices running android 7.0
The pop up is launched but after downloading the apk the app crashed and does not perform the install. These keep happening every time you open the app. I am allowing unknown sources and un-checking the flag that in these device ask if you want to install only once the apk.
Thanks for the help.
I call in ionic 2
AppUpdate.checkAppUpdate('https://localhost/update-mobil/update.xml')
and return
{"__zone_symbol__state":null,"__zone_symbol__value":"[]"}
what wrong?
thx
Hello,
is it possible use background download as default? I need install without system prompt after download.
appupdate_strings.xml中的文案更改后,app重新编译发布,但是升级提示还是没变化!
Hi to all,
after installing the plugin ('cordova plugin add cordova-plugin-app-update --save') I'll try yo use it but unfotunately something goes wrong.
In my 'controller.js' I've wrote this simple code:
.controller('UpdateappCtrl', function($scope, apiServerAddress, AppUpdate) {
$scope.updateTest = function() {
var updateUrl = apiServerAddress+'/../uploads/version.xml';
window.AppUpdate.checkAppUpdate(
function(){
console.log('ok. Successfully updated app')
},function(){
console.error('Error updating app')
},
updateUrl
);
})
Unfotunately I got this error: Unknown provider: $cordovaAppUpdateProvider
In the same project I use successfully the following plugins:
cordova-plugin-app-update 1.3.9 "AppUpdate"
cordova-plugin-appversion 1.0.0 "App Version"
cordova-plugin-camera 2.2.0 "Camera"
cordova-plugin-compat 1.0.0 "Compat"
cordova-plugin-file 4.2.0 "File"
cordova-plugin-whitelist 1.2.2 "Whitelist"
phonegap-plugin-barcodescanner 6.0.2 "BarcodeScanner"
Any ideas ?
Thank you in advance
mic
只能是 324242 这样的吗?像 1.0.5 这样的可以吗?
Problem
Both cordova-plugin-app-update and cordova-plugin-camera attempt to put the file provider_paths.xml into platforms/android/res/xml folder, which causes an error.
Solution
Rename provider_paths.xml to appupdate_paths.xml
when get the android:versionCode in AndroidManifest.xml , is always add "8" in the end, even though update to this version , it is always reminder to update , I do not know why , maybe is the cordova own problem, do you have some solutions?
缺少 xml/provider_paths
我是一个新手想用这个plugin更新现有的android app。
我先使用了您提供的demo,用cordova build了apk。然后我在config.xml里面把version从0.0.1改成了0.0.2,重新build了apk。
我使用wamp建立了localserver,然后在localhost里面创建了version.xml, 使用了您的格式
update
version 28 /version
name apk name /name
url https://192.168.0.11/apk/android-debug.apk /url
/update
然后我把version0.0.2的apk放在了localhost/apk文件夹里面。
我在我的pad里面安装了apk0.0.1,然后在url里面输入了 192.168.0.11/version.xml
然后检查更新。但是没有反应。
我用pad里的浏览器直接输入192.168.0.11/version.xml,能显示出这个xml文件的内容,所以我觉得不是连接问题。
请问我漏了哪些步骤或者我哪里的操作出问题了吗?
谢谢你!
我刚才尝试把你的version.xml下载并毫无更改的替换我原来的version.xml,但是还没不提示有更新,所以排除了version.xml这个文件的问题。而且我觉得和我build的version0.0.2也没有关系。很可能还是连接问题。但是我很奇怪的是,我可以在我的pad里面连接localhost打开这个xml文件。我现在毫无头绪。。
我又研究了一段时间,我发现问题解决了。
url里面应该用http://而不是https://
1、不管当前版本比XML中的是高还是低,都是出现软件更新提示。
<update>
<version>18</version>
<name>手机端</name>
<url>http://....apk/android-debug.apk</url>
</update>
设17,设22都是这样,开始是10000,设1000和302048都一样,我只改了这里和index中的XML指向,不知道是其他地方还需要修改还是哪里出了问题。
2、在UpdateManager.java里有一个192.168.3.102?的链接是怎么回事,根本就是死链,这里是什么用途,需要修改吗?
Hello! Excuse me I don't exactly understand what this plugin does, I wanted to know?
To see if it can help me solve my problem, I have a developed app that is going to be installed from play store which uses the kiosk mode plugin (a launcher app), and I'm asked by my supervisor to find a way to update its version from within the app like using a URL or something like that as it is a launcher app. Is it possible?
缺少support包,编译通不过,希望添加support包依赖
After add the plugin, I get this error:
AAPT: No resource found that matches the given name (at 'resource' with value '@xml/provider_paths')
=l
I am in private APN and Ionic plugin cordova-plugin-app-update return {code: 405, msg: "network error"}
on url https://10.0.10.110/update-mobil/update.xml
But in web browser url https://10.0.10.110/update-mobil/update.xml
is ok and return xml
<update> <version>200</version> <name>APK Name</name> <url>https://10.0.10.110/update-mobil/android-debug.apk</url> </update>
what´s wrong? How can i debug where is problem?
Thank you for your answer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.