vaenow / cordova-plugin-app-update

App updater for Cordova/PhoneGap
MIT License
299 stars 146 forks source link

雖然有下載更新檔案,但重啟後仍然開啟舊版本 #34

Closed prolog8 closed 5 years ago

prolog8 commented 7 years ago

如提目:執行這一行後,啟動了下載程序

window.AppUpdate.checkAppUpdate(onSuccess, errorHandler, updateUrl);

但是新的 apk 沒有蓋過舊的 apk,所以重新啟動後仍是舊版。

vaenow commented 7 years ago

它是能覆盖旧版本的。 但是,推荐做法是:根据版本号、类型、渠道、日期等命名每个apk (如: apkname-20170712-101028-release.apk

prolog8 commented 7 years ago

謝謝很快的回覆。

就有關覆蓋舊版 APK,經反複測試,是證明可以的(在特定條件下)。

我用了 5 部手機測試,結果如下:

總結: Samung 2 部 OK Ienovo A820 成功了一半 小米平板($1500) 不行 最新的 Sony Xperia X (內付NFC) $2200,那麼貴還是 不行

Willow

841660202 commented 6 years ago

I find it only download,then over,no update any .my phone is huawei mate9

dinglicoding commented 6 years ago

in huawei mate9,i have download it,and app closed.but not show install dialog. and i can't find the download apk in my phone.

vaenow commented 6 years ago

This may be a thorny problem, I do not have Mate9, can you guys help me find the cause of the issue?