vaenow / cordova-plugin-app-update

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

App Not installing automatically in android 9 #134

Open GowthamJadon opened 5 years ago

GowthamJadon commented 5 years ago

After Download the apk file through the app-update plugin it's not installing automatically updating in android 9 but working fine in android 8 =< do i need to add any new permission for that ???

deliverymanager commented 5 years ago

+1

deliverymanager commented 5 years ago

Hmm I have made some search and I found that your need to explicitly go inside the app and allow it to install the apk. https://android-developers.googleblog.com/2017/08/making-it-safer-to-get-apps-on-android-o.html

pratikchourdia commented 5 years ago

Any Update ?

GowthamJadon commented 5 years ago

Hi ,

I have found a solution but i'm not sure that will be the greatest one

in the manifest file

<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" /> <uses-permission android:name="android.settings.MANAGE_UNKNOWN_APP_SOURCES" /> i have add these permissions

after that installation worked fine....

On Wed, 12 Jun 2019 at 20:22, Pratik Chourdia notifications@github.com wrote:

Any Update ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vaenow/cordova-plugin-app-update/issues/134?email_source=notifications&email_token=AG3YNVVLZDLWQC6VISGSEVLP2EES5A5CNFSM4HNI4TF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXQWD7I#issuecomment-501309949, or mute the thread https://github.com/notifications/unsubscribe-auth/AG3YNVSNSXYK6KY5KHXC7K3P2EES5ANCNFSM4HNI4TFQ .

HerculanoGripp commented 5 years ago

@GowthamJadon I try to add this permission but for me doesn't work. When checkAppUpdate is called android ask the permission for Install unknown apps but if mark to allow nothing happen. Apk doesn't download. Does anyone have the same issue?

IamSurendraThota commented 4 years ago

+1

floinay commented 4 years ago
kunajs commented 4 years ago

any update on this?