Comments (9)
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.
http://blog.csdn.net/leilifengxingmw/article/details/57405908
这里有解决方案
from cordova-plugin-app-update.
Resolved with last version I think
from cordova-plugin-app-update.
Still crashing :/
from cordova-plugin-app-update.
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.
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.
@vaenow hi ,can you help me check what's wrong?
from cordova-plugin-app-update.
Still crashing :/
from cordova-plugin-app-update.
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)
- my app continuosly ask for "upadate available even though is updated once in ionic 3" HOT 5
- Download Bar doesn't fill up for when downloading APK HOT 4
- CheckAppUpdate.java uses or overrides a deprecated API.
- There was a problem while parsing the package
- App Not installing automatically in android 9 HOT 8
- Download Again / Install Manually when run with the Kiosk cordova plugin HOT 4
- App crashed after download HOT 4
- Provide full api expose
- Receiving only one message from plugin
- APK Update
- Implementation with ionic-stencil
- I don't think the plugin still has active maintainers. Here's an alternative. HOT 3
- When I open the application, I got an error in console that says: HOT 2
- Don't use this plugin! HOT 10
- This plugin is a voilation against google policies, do not install this plugin HOT 2
- Does this plugin support android10? HOT 2
- Application crash while trying to update (null.appupdate.provider)
- Do you possibly support capacitor?
- FileNotFoundException
- BSF Cordova Ecosystem Crowdfunding Plan
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-app-update.