You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/10/15 10:29:17 UTC

[GitHub] [cordova-plugin-inappbrowser] khoailangdo opened a new issue #800: Access Denied when open file in system storage

khoailangdo opened a new issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800


   # Bug Report
   in my application. I use the InAppBrowser plugin to display files loaded from an API on the device memory.
   But when displaying (Photo) file from device memory, the error is displayed as follows:
   
   > `Webpage not available
   
   The webpage at file:///storage/emulated/0/Android/data/com.nuance.bc/test.jpg could not be loaded because:
   net::ERR_ACCESS_DENIED
   `
   
   I checked that the file "test.jpg" in the device memory still exists and can be opened in another photo viewer. Also I have applied for android permision permissions:
   `    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
       <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
   `
   
   In addition I also go to the android settings to allow the Storage permission but also cannot display the image.
   But when I run the application on Simulator and LDPlayer4 Simulator, the image is displayed well and there is no error.
   
   Please help me out with what errors are and what can be done to fix them?
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   InAppBrowser plugin: 4.0.0
   Cordova: 9.0.0
   Ionic: 1.7.16
   NodeJs: v6.11.5
   Mobile Device OS: Android 8.0
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [x ] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] walkerfirminibm commented on issue #800: Access Denied when open file in system storage

Posted by GitBox <gi...@apache.org>.
walkerfirminibm commented on issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800#issuecomment-970688884


   I see that cordova-plugin-whitelist was moved into the core Cordova Android package and the plugin is compatible with cordova-android 4.0< to <10.X, could any changes here cause this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] quenis commented on issue #800: Access Denied when open file in system storage

Posted by GitBox <gi...@apache.org>.
quenis commented on issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800#issuecomment-974292272


   The solution it was implement on this pull: [](https://github.com/apache/cordova-plugin-inappbrowser/pull/883), but not merged yet.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] quenis edited a comment on issue #800: Access Denied when open file in system storage

Posted by GitBox <gi...@apache.org>.
quenis edited a comment on issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800#issuecomment-974292272


   The solution it was implement on this pull: https://github.com/apache/cordova-plugin-inappbrowser/pull/883, but not merged yet.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] chrisjdev commented on issue #800: Access Denied when open file in system storage

Posted by GitBox <gi...@apache.org>.
chrisjdev commented on issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800#issuecomment-916250324


   I found this SO question to be more relevant, if the underlying cause is more related to targeting Android API level 30: https://stackoverflow.com/questions/63830399/android-webview-load-from-internal-storage-android-11-android-r


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] casper123 commented on issue #800: Access Denied when open file in system storage

Posted by GitBox <gi...@apache.org>.
casper123 commented on issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800#issuecomment-899054452


   @khoailangdo were you able to solve this issue? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] monavari-lebrecht commented on issue #800: Access Denied when open file in system storage

Posted by GitBox <gi...@apache.org>.
monavari-lebrecht commented on issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800#issuecomment-876535150


   Same problem here? Do you have any solution?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] casper123 commented on issue #800: Access Denied when open file in system storage

Posted by GitBox <gi...@apache.org>.
casper123 commented on issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800#issuecomment-898888121


   I'm having the same issue. were you able to find a fix?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] quenis edited a comment on issue #800: Access Denied when open file in system storage

Posted by GitBox <gi...@apache.org>.
quenis edited a comment on issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800#issuecomment-974292272


   The solution it was implement on this pull: [https://github.com/apache/cordova-plugin-inappbrowser/pull/883], but not merged yet.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] boringdeveloper commented on issue #800: Access Denied when open file in system storage

Posted by GitBox <gi...@apache.org>.
boringdeveloper commented on issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800#issuecomment-887279182


   Were you able to resolve this? I am encountering the same problem.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] KoutrosK commented on issue #800: Access Denied when open file in system storage

Posted by GitBox <gi...@apache.org>.
KoutrosK commented on issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800#issuecomment-943376104


   Getting the same error as well.
   Any workaround would be helpful.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] tdfeslo commented on issue #800: Access Denied when open file in system storage

Posted by GitBox <gi...@apache.org>.
tdfeslo commented on issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800#issuecomment-848242747


   Hi. I have the same issue. Did you find any solution ? Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] khoailangdo commented on issue #800: Access Denied when open file in system storage

Posted by GitBox <gi...@apache.org>.
khoailangdo commented on issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800#issuecomment-899059699


   Try following the suggestions from this page.
   https://stackoverflow.com/questions/5899087/android-webview-localstorage


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] viktor-shmigol commented on issue #800: Access Denied when open file in system storage

Posted by GitBox <gi...@apache.org>.
viktor-shmigol commented on issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800#issuecomment-943332700


   I'm having the same issue while opening local image(file://../../test.jpg).
   ```
   net::ERR_ACCESS_DENIED
   ```
   It stops working when I upgraded cordova-android to 10.1.1.
   As far as I can see latest cordova-android plugin uses Android API level 30.
   Is there any workaround for this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] quenis edited a comment on issue #800: Access Denied when open file in system storage

Posted by GitBox <gi...@apache.org>.
quenis edited a comment on issue #800:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/800#issuecomment-974292272


   The solution it was implement on this pull: https://github.com/apache/cordova-plugin-inappbrowser/pull/883, but not merged yet. 😢


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org