Manigandasubbu opened a new issue #618:
URL: https://github.com/apache/cordova-plugin-camera/issues/618
# Bug Report
## Problem
### What is expected to happen?
It need to ask the storage permission for capturing the video. So the i can
able to transfer the video.
### What does actually happen?
Because it's not asking the storage permission i am not able to transfer the
video to the back-end.
## Information
<!-- Include all relevant information that might help understand and
reproduce the problem -->
When user try first time when app was installed to capture a video i need to
get the storage permission but it was not happening.
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
async captureVideo(): Promise<void> {
const videoOptions: CaptureVideoOptions = { duration: 30 };
try {
const data: MediaFile[] | CaptureError =
await this.mediaCapture.captureVideo(videoOptions);
const video = data[0];
const sizeError = await this.compareFileSizes(video.size);
if (sizeError) throw sizeError;
const fileObject = new FileObject();
fileObject.name = 'file';
fileObject.type = video.type;
fileObject.data = video.fullPath;
this.uploadFile(fileObject);
} catch (error) {
this.handleUploadError(error);
}
}
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you
experiencing the issue? -->
In all the Android version i have the same problem.
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
"cordova-plugin-camera": "^4.1.0",
"cordova-plugin-camera": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
Operating System : Ubuntu 18.04.
Cordova : 9,
Ionic version:-6.2.1
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [ ] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [ ] 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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]