cordova-plugin-app-update icon indicating copy to clipboard operation
cordova-plugin-app-update copied to clipboard

Download Bar doesn't fill up for when downloading APK

Open jamesta696 opened this issue 5 years ago • 4 comments

Progress Bar doesn't update itself in % or fill up when downloading APK Any fix for this?

Cordova & Android Versions

Cordova Version: 8.1.2 ([email protected]) Android Platform Version: android 7.1.4

Plugin Versions

cordova-plugin-app-update 2.0.2 "AppUpdate" cordova-plugin-appversion 1.0.0 "App Version"

jamesta696 avatar Apr 16 '19 19:04 jamesta696

any update on this?

Nashorn avatar Aug 13 '19 18:08 Nashorn

for me the same using android 8.1.0

kunajs avatar May 27 '20 10:05 kunajs

i had this problem (android 10) .. this plugin downloads the apk to storage on the phone using <app_id>.apk e.g. com.yourapp.appname.apk .. in my case it was downloading OK (i could see it downloaded OK on the server) the progress bar would not increment and it appeared to hang. Internally i could see via adb logcat that it was getting a permission denied error on /storage/emulated/0/download/com.yourapp.appname.apk .. i deleted this file from the downloads and it worked properly after that every time. It seems like really this application should be choosing a unique filename each time it downloads at least I know what the fix is now anyway :)

daflip avatar Jan 19 '21 12:01 daflip

@daflip we implemented a version that adds the timestamp in the filename to prevent the described issue. Thx for pointing that out.

JEreth avatar Dec 07 '22 14:12 JEreth