Giter Club home page Giter Club logo

Comments (9)

LanceJenkinZA avatar LanceJenkinZA commented on July 21, 2024 1

The problem is in plugin.xml.

The provider's authorities is set to com.vaenow.appupdate.android.provider.${applicationId}, but the code in DownloadHandler.java is calling with "com.vaenow.appupdate.android.provider" - i.e no application id.

I've created a pull request to fix the issue; #66

from cordova-plugin-app-update.

zhanyingfeng avatar zhanyingfeng commented on July 21, 2024

http://blog.csdn.net/leilifengxingmw/article/details/57405908

这里有解决方案

from cordova-plugin-app-update.

arthursp avatar arthursp commented on July 21, 2024

Resolved with last version I think

from cordova-plugin-app-update.

arthurflor23 avatar arthurflor23 commented on July 21, 2024

Still crashing :/

from cordova-plugin-app-update.

oceantear avatar oceantear commented on July 21, 2024

I also reproduced this issue on Samsuang Galaxy Tab A with Android 7.0
Even if, I update to v1.4.10. This issue still not been solved.
Below is the Android log:

E/AndroidRuntime: FATAL EXCEPTION: JavaBridge
                                                                        Process: packageName, PID: 20227
                                                                        android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.INSTALL_PACKAGE dat=content://com.vaenow.appupdate.android.provider/download/v2.0 flg=0x1 launchParam=MultiScreenLaunchParams { mDisplayId=0 mBaseDisplayId=0 mFlags=0 } }
                                                                            at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1844)
                                                                            at android.app.Instrumentation.execStartActivity(Instrumentation.java:1531)
                                                                            at android.app.Activity.startActivityForResult(Activity.java:4403)
                                                                            at org.apache.cordova.CordovaActivity.startActivityForResult(CordovaActivity.java:342)
                                                                            at android.app.Activity.startActivityForResult(Activity.java:4362)
                                                                            at android.app.Activity.startActivity(Activity.java:4686)
                                                                            at android.app.Activity.startActivity(Activity.java:4654)
                                                                            at com.vaenow.appupdate.android.DownloadHandler.installApk(DownloadHandler.java:106)
                                                                            at com.vaenow.appupdate.android.DownloadHandler.handleMessage(DownloadHandler.java:57)
                                                                            at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                            at android.os.Looper.loop(Looper.java:154)
                                                                            at android.os.HandlerThread.run(HandlerThread.java:61)

from cordova-plugin-app-update.

dinglicoding avatar dinglicoding commented on July 21, 2024

In Android Emulater(android 7.0)
I update to v1.4.12
when i updated app but error:
E/AndroidRuntime: FATAL EXCEPTION: JavaBridge
Process: com.company.crownapp, PID: 5896
android.os.FileUriExposedException: file:///storage/emulated/0/download/crownapp28 exposed beyond app through Intent.getData()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1799)
at android.net.Uri.checkFileUriExposed(Uri.java:2346)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8933)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8894)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1517)
at android.app.Activity.startActivityForResult(Activity.java:4224)
at org.apache.cordova.CordovaActivity.startActivityForResult(CordovaActivity.java:342)
at android.app.Activity.startActivityForResult(Activity.java:4183)
at android.app.Activity.startActivity(Activity.java:4507)
at android.app.Activity.startActivity(Activity.java:4475)
at com.vaenow.appupdate.android.DownloadHandler.installApk(DownloadHandler.java:94)
at com.vaenow.appupdate.android.DownloadHandler.handleMessage(DownloadHandler.java:54)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)

and in AndroidManifest.xml

<provider android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true" android:name="android.support.v4.content.FileProvider">
       <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" />
</provider>
<provider android:authorities="${applicationId}.opener.provider" android:exported="false" android:grantUriPermissions="true" android:name="io.github.pwlin.cordova.plugins.fileopener2.FileProvider">
       <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/opener_paths" />
 </provider>

from cordova-plugin-app-update.

dinglicoding avatar dinglicoding commented on July 21, 2024

@vaenow hi ,can you help me check what's wrong?

from cordova-plugin-app-update.

immortalt avatar immortalt commented on July 21, 2024

Still crashing :/

from cordova-plugin-app-update.

JoxC avatar JoxC commented on July 21, 2024

Still crashing :/

Maybe you need check proguard if you use it. Add lines like below may get things work,
-keep class xxxx.xxxx.BuildConfig { *; }

from cordova-plugin-app-update.

Related Issues (20)

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.