Giter Club home page Giter Club logo

cordova-plugin-app-update's People

Contributors

alelapeyre avatar arthurflor23 avatar arthursp avatar calcao avatar chaosnote avatar cperdereau avatar decpio avatar gabrielluka avatar gnarvaja avatar hodes avatar ippeiukai avatar javierabrego avatar lancejenkinza avatar loban avatar myemuk avatar oceantear avatar pxlrbt avatar timataran avatar vaenow avatar vovikdrg avatar writer0713 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin-app-update's Issues

Support Authentication

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

Error: No resource found that matches the given name (at 'resource' with value '@xml/provider_paths').

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

Always getting success

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");

Cannot read property 'checkAppUpdate' of undefined

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);
})

Not working

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?

Cannot automatic compare AppVersion

tim 20171208093004

tim 20171208094026

This is my app's version(3.2.4),and The server version is18(0.0.1).However, the plugins will still download the apk! The comparsion of app version do not work。

No respond

I'm using your plugin but it seems that there is no respond. I'm not sure what I've done wrong

cordova build android android.support.v4.content.FileProvider

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.

  • What went wrong:
    Execution failed for task ':compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Error: cmd: Command failed with exit code 1 Error output:
    ע: ijЩ�����ļ�ʹ�û򸲸����ѹ�ʱ�� API��
    ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
    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: ����: �Ҳ�
    ������
    Uri uri = FileProvider.getUriForFile(mContext, "com.vaenow.appupdate.android.provider", apkFile);
    ^
    ����: ���� FileProvider
    �: �� DownloadHandler
    ע: ijЩ�����ļ�ʹ�û򸲸����ѹ�ʱ�� API��
    ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
    4 ������

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Failure [INSTALL_FAILED_CONFLICTING_PROVIDER] 打包成功,安裝時報錯

我在兩個App裏面使用了cordova-plugin-app-update,但是第二個在安裝時失敗,報錯Failure [INSTALL_FAILED_CONFLICTING_PROVIDER] 。

經過網上的查閲資料,發現是以下的標簽屬性存在相同,導致第一App安裝成功,第二個則失敗
image

我現在應該怎麽辦?

如何知道检查完成 - Resolved

VAENOW 你好,

我现在的遇到的麻烦是,他还在检查更新但是旧的程序已经开始运行了。有没有什么function类似onCheckComplete,就是当你检查完了以后才能运行下一步?

我测试了onFail和onSuccess这两个callback,测试结果好像是只有在没法连接服务器的时候才会call onFail, 不管有没有更新都会显示onSuccess。有没有什么方法能知道到底需不需要更新呢?

谢谢!

查詢下載 APK 後的貯存位置

如果在 Google Play Store 下載APP,預設存於共用的 Download 目錄(大家都能看見的),而且沒有容量限制,只要手機空間足夠就行。

我們問題是:尊駕開發的 App Update (plugin) 啟動下載時,是否貯存於 APP 自身的目錄中(類似 file:///data/user/0/... ) ?

這代表着,APP下載後,用戶不能自行到共用的 Download 目錄手動安裝 APP (或取走那個 apk)。

Willow (上次忘記留名字)

Auto Update without the need to tap on "Update"

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

App update with count notification

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?

Cancel installation - Update-Progress-Popup gets displayed

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

Change Language

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!

Change language.

Hello, thanks for this work ! How i can change the language without passing by Java (Just with config.xml or Js) ?

app crash whith this plug

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>

Package with the same name?

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?

Modify UI strings

There seems to be no way to modify the UI-Text strings from Javascript or to select a local version for the strings.

Download of new version aborts instantly

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!

Unable to update apk in Galaxy S7 (Android Version 7)

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.

no update

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

how to work on Android 6.x and later

thank you build the awesome plugin
it work fine on android 4.x, but not for 6.x/ 7.x ( emulator and real device )
is there any walk run for android 6.x+ ?

screenshot_android7

Unknown provider: $cordovaAppUpdateProvider

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

VersionCode generate rule 版本规则

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?

不显示软件更新。

我是一个新手想用这个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?的链接是怎么回事,根本就是死链,这里是什么用途,需要修改吗?

Change theme android?

Is possible change the theme from msg box?

Msg box like this (or something like this):
image

It can be through some java file as well

About Plugin

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?

Error to build android apk

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

private APN

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.