vaenow / cordova-plugin-app-update

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

how to work on Android 6.x and later #13

Closed yelban closed 7 years ago

yelban commented 7 years ago

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

vaenow commented 7 years ago
var versionCode = AppVersion.build
console.log(versionCode)  // 302048
yelban commented 7 years ago

sure, all the version code is "30203" Sony Z3 (android 6.0.1) , android avd ( 7.0 and 4.1.2 )

android 4.1.2/5.1 work! Updating display two blue line ( one for progress bar) android 6.x/7.x doesn't work, display only one gray line as screen shot.

chingfeng commented 7 years ago

Android added new permission model for Android M.

Please check this page that will help you handling the permissions in M.

http://www.cnblogs.com/zzw1994/p/5021118.html

or use Android's DownloadManager to download apk file, and install it after _"DownloadManager.ACTION_DOWNLOADCOMPLETE" received.

vaenow commented 7 years ago

@chingfeng Would you please send me a pull request, thanks in advance.

yelban commented 7 years ago

hope this link will help :)

how to use Android 7.0 FileProvider http://www.techug.com/android7-0-rom-mod

mzszhznn commented 7 years ago

感谢,很好的插件。 在高版本遇到同样的问题。 能不能在下一个版本得到兼容处理呢?

vaenow commented 7 years ago

看来已经有很多同学遇到了这个麻烦,我会尽快处理。

I'll handle this as soon as possible

vaenow commented 7 years ago

Thanks @chingfeng 's pull request #16

👍