Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Android work profile java.io.FileNotFoundException: file:///storage/emulated/0/DCIM/Camera/VID_20190213_090459.mp4 #153

Open
ghost opened this issue Feb 13, 2019 · 5 comments

Comments

@ghost
Copy link

ghost commented Feb 13, 2019

Dear experts, the plugin fails when running the app inside a work profile https://developers.google.com/android/work/requirements/work-profile.

java.io.FileNotFoundException: file:///storage/emulated/0/DCIM/Camera/VID_20190213_090459.mp4 -> /storage/emulated/0/DCIM/Camera/VID_20190213_090459.mp4

Both Storage and Camera permissions are enabled.

Outside work profile it works fine.

The video can be accessed in Photos or Gallery app running outside the work profile.

We also use cordova-plugin-camera inside the same work profile app and it works fine. Those photos can also be accessed in Photos or Gallery app running outside the work profile. We can process the photos with cordova-plugin-file and window.resolveLocalFileSystemURL.

@Juanperezc
Copy link

I have the same Issue

1 similar comment
@rehiy
Copy link

rehiy commented May 7, 2019

I have the same Issue

@yangshuyi
Copy link

Has this issue been resolved?
I also met
"java.io.FileNotFoundException: /storage/emulated/0/Movies/APP/20191122120612.mp4: open failed: EACCES (Permission denied)"

@yangshuyi
Copy link

I debugged android code and found someting wrong with the option: saveToLibrary == true. which caused the permission exception
I made a work around solution by turning the option to false

@alexander-soare
Copy link

This was not happening to me initially but for some reason it started happening a few days ago. Like with @yangshuyi, setting saveToLibrary: false fixes the issue, but this is not ideal as I actually need it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants