You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.
App crash when android-targetSdkVersion equals or more than 24 in config.xml <preference name="android-targetSdkVersion" value="24" />
Working fine if change to 23.
05-08 09:49:00.031 24924 24924 E AndroidRuntime: android.os.FileUriExposedException: file:///storage/emulated/0/invoice.pdf exposed beyond app through Intent.getData()
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.os.StrictMode.onFileUriExposed(StrictMode.java:1796)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.net.Uri.checkFileUriExposed(Uri.java:2346)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.content.Intent.prepareToLeaveProcess(Intent.java:8981)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.content.Intent.prepareToLeaveProcess(Intent.java:8942)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1519)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:4229)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at org.apache.cordova.CordovaActivity.startActivityForResult(CordovaActivity.java:332)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:4187)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:4526)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:4494)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at org.apache.cordova.inappbrowser.InAppBrowser.openExternal(InAppBrowser.java:353)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at org.apache.cordova.inappbrowser.InAppBrowser$1.run(InAppBrowser.java:183)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6186)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
The text was updated successfully, but these errors were encountered:
I have been away from Cordova development for some time. I have a few weeks free and will be updating my plugins in this timespan. I don't have an ETA but I set up my Android environment earlier, I'll keep you posted.
App crash when android-targetSdkVersion equals or more than 24 in config.xml
<preference name="android-targetSdkVersion" value="24" />
Working fine if change to 23.
05-08 09:49:00.031 24924 24924 E AndroidRuntime: android.os.FileUriExposedException: file:///storage/emulated/0/invoice.pdf exposed beyond app through Intent.getData()
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.os.StrictMode.onFileUriExposed(StrictMode.java:1796)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.net.Uri.checkFileUriExposed(Uri.java:2346)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.content.Intent.prepareToLeaveProcess(Intent.java:8981)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.content.Intent.prepareToLeaveProcess(Intent.java:8942)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1519)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:4229)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at org.apache.cordova.CordovaActivity.startActivityForResult(CordovaActivity.java:332)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:4187)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:4526)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:4494)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at org.apache.cordova.inappbrowser.InAppBrowser.openExternal(InAppBrowser.java:353)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at org.apache.cordova.inappbrowser.InAppBrowser$1.run(InAppBrowser.java:183)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6186)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
05-08 09:49:00.031 24924 24924 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
The text was updated successfully, but these errors were encountered: