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/07/03 15:24:43 UTC

[GitHub] [cordova-plugin-camera] Manigandasubbu opened a new issue #618: When we capture the video first time when user installed the app. Permission is not asked in android.

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:
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-camera] Manigandasubbu commented on issue #618: When users installed the android application and try to capture the video first time. Permission is not asked in android mobile's.This was happening in all the android version's

Posted by GitBox <gi...@apache.org>.
Manigandasubbu commented on issue #618:
URL: https://github.com/apache/cordova-plugin-camera/issues/618#issuecomment-653633173


   > > > Can you tell me if you see `<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />` in your `platforms/android/app/src/main/AndroidManifest.xml` file?
   > > 
   > > 
   > > No ,Can i know where should i need to add that,When i try to capture the picture it was asking storage permission,If i capture the video it's not asking the storage permission.
   > 
   > Should be added automatically when you install the plugin/platform. If it's missing from your `AndroidManifest` that would explain why you're not getting a permission prompt. The question then becomes "Why wasn't that line added to your `AndroidManifest`?".
   > 
   > Some things I'd try:
   > 
   > * Ensure you're using the latest version of `cordova-android` (version `9.0.0` at the time of writing, not to be confused with the `cordova` cli version)
   > * Reinstall the `cordova-android` platform
   > * Reinstall the `cordova-plugin-camera` plugin.
   > 
   > If none of the above doesn't work, then I would confirm that this happens in a pure-cordova project (no frameworks), to eliminate the possibility that the problem is coming from a framework. If you can share a [sample reproduction app](https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md) while using no frameworks, that would be very helpful.
   
   Yes i tried many times no use on it.


----------------------------------------------------------------
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-camera] Manigandasubbu removed a comment on issue #618: When users installed the android application and try to capture the video first time. Permission is not asked in android mobile's.This was happening in all the android version's

Posted by GitBox <gi...@apache.org>.
Manigandasubbu removed a comment on issue #618:
URL: https://github.com/apache/cordova-plugin-camera/issues/618#issuecomment-653633173


   > > > Can you tell me if you see `<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />` in your `platforms/android/app/src/main/AndroidManifest.xml` file?
   > > 
   > > 
   > > No ,Can i know where should i need to add that,When i try to capture the picture it was asking storage permission,If i capture the video it's not asking the storage permission.
   > 
   > Should be added automatically when you install the plugin/platform. If it's missing from your `AndroidManifest` that would explain why you're not getting a permission prompt. The question then becomes "Why wasn't that line added to your `AndroidManifest`?".
   > 
   > Some things I'd try:
   > 
   > * Ensure you're using the latest version of `cordova-android` (version `9.0.0` at the time of writing, not to be confused with the `cordova` cli version)
   > * Reinstall the `cordova-android` platform
   > * Reinstall the `cordova-plugin-camera` plugin.
   > 
   > If none of the above doesn't work, then I would confirm that this happens in a pure-cordova project (no frameworks), to eliminate the possibility that the problem is coming from a framework. If you can share a [sample reproduction app](https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md) while using no frameworks, that would be very helpful.
   
   Yes i tried many times no use on it.


----------------------------------------------------------------
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-camera] Manigandasubbu commented on issue #618: When users installed the android application and try to capture the video first time. Permission is not asked in android mobile's.This was happening in all the android version's

Posted by GitBox <gi...@apache.org>.
Manigandasubbu commented on issue #618:
URL: https://github.com/apache/cordova-plugin-camera/issues/618#issuecomment-653851719


   
   [videoe410c2a6-3e8e-4a5b-bbc3-ccf4f800c65bvideo.zip](https://github.com/apache/cordova-plugin-camera/files/4874543/videoe410c2a6-3e8e-4a5b-bbc3-ccf4f800c65bvideo.zip)
   I shared a video recording the bug,I am working on sample application.When done i will share it.And i tried all my cordova version is 9 and i tried all the way's what you told.
   


----------------------------------------------------------------
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-camera] Manigandasubbu edited a comment on issue #618: When users installed the android application and try to capture the video first time. Permission is not asked in android mobile's.This was happening in all the android version's

Posted by GitBox <gi...@apache.org>.
Manigandasubbu edited a comment on issue #618:
URL: https://github.com/apache/cordova-plugin-camera/issues/618#issuecomment-653630957


   > Can you tell me if you see `<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />` in your `platforms/android/app/src/main/AndroidManifest.xml` file?
   
   Yes it was added there,When i try to capture the picture it was asking storage permission,If i capture the video it's not asking the storage permission.


----------------------------------------------------------------
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-camera] breautek commented on issue #618: When users installed the android application and try to capture the video first time. Permission is not asked in android mobile's.This was happening in all the android version's

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #618:
URL: https://github.com/apache/cordova-plugin-camera/issues/618#issuecomment-653620472


   Can you tell me if you see `<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />` in your `platforms/android/app/src/main/AndroidManifest.xml` file?


----------------------------------------------------------------
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-camera] Manigandasubbu commented on issue #618: When users installed the android application and try to capture the video first time. Permission is not asked in android mobile's.This was happening in all the android version's

Posted by GitBox <gi...@apache.org>.
Manigandasubbu commented on issue #618:
URL: https://github.com/apache/cordova-plugin-camera/issues/618#issuecomment-653633328


   > > > Can you tell me if you see `<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />` in your `platforms/android/app/src/main/AndroidManifest.xml` file?
   > > 
   > > 
   > > No ,Can i know where should i need to add that,When i try to capture the picture it was asking storage permission,If i capture the video it's not asking the storage permission.
   > 
   > Should be added automatically when you install the plugin/platform. If it's missing from your `AndroidManifest` that would explain why you're not getting a permission prompt. The question then becomes "Why wasn't that line added to your `AndroidManifest`?".
   > 
   > Some things I'd try:
   > 
   > * Ensure you're using the latest version of `cordova-android` (version `9.0.0` at the time of writing, not to be confused with the `cordova` cli version)
   > * Reinstall the `cordova-android` platform
   > * Reinstall the `cordova-plugin-camera` plugin.
   > 
   > If none of the above doesn't work, then I would confirm that this happens in a pure-cordova project (no frameworks), to eliminate the possibility that the problem is coming from a framework. If you can share a [sample reproduction app](https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md) while using no frameworks, that would be very helpful.
   
   Tomorrow i will share it. 


----------------------------------------------------------------
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-camera] breautek commented on issue #618: When users installed the android application and try to capture the video first time. Permission is not asked in android mobile's.This was happening in all the android version's

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #618:
URL: https://github.com/apache/cordova-plugin-camera/issues/618#issuecomment-653632718


   > > Can you tell me if you see `<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />` in your `platforms/android/app/src/main/AndroidManifest.xml` file?
   > 
   > No ,Can i know where should i need to add that,When i try to capture the picture it was asking storage permission,If i capture the video it's not asking the storage permission.
   
   Should be added automatically when you install the plugin/platform. If it's missing from your `AndroidManifest` that would explain why you're not getting a permission prompt. The question then becomes "Why wasn't that line added to your `AndroidManifest`?".
   
   Some things I'd try:
   
   - Ensure you're using the latest version of `cordova-android` (version `9.0.0` at the time of writing, not to be confused with the `cordova` cli version)
   - Reinstall the `cordova-android` platform
   - Reinstall the `cordova-plugin-camera` plugin.
   
   If none of the above doesn't work, then I would confirm that this happens in a pure-cordova project (no frameworks), to eliminate the possibility that the problem is coming from a framework. If you can share a [sample reproduction app](https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md) while using no frameworks, that would be very 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.

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-camera] Manigandasubbu closed issue #618: When users installed the android application and try to capture the video first time. Permission is not asked in android mobile's.This was happening in all the android version's

Posted by GitBox <gi...@apache.org>.
Manigandasubbu closed issue #618:
URL: https://github.com/apache/cordova-plugin-camera/issues/618


   


----------------------------------------------------------------
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-camera] indraraj26 commented on issue #618: When users installed the android application and try to capture the video first time. Permission is not asked in android mobile's.This was happening in all the android version's

Posted by GitBox <gi...@apache.org>.
indraraj26 commented on issue #618:
URL: https://github.com/apache/cordova-plugin-camera/issues/618#issuecomment-654397530


   You can clone this and reproduce for me
   git : https://github.com/indraraj26/cordova-camera-fast-click
   
   npm i 
   cordova platform add android
   cordova build android 


----------------------------------------------------------------
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-camera] Manigandasubbu edited a comment on issue #618: When users installed the android application and try to capture the video first time. Permission is not asked in android mobile's.This was happening in all the android version's

Posted by GitBox <gi...@apache.org>.
Manigandasubbu edited a comment on issue #618:
URL: https://github.com/apache/cordova-plugin-camera/issues/618#issuecomment-653630957


   > Can you tell me if you see `<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />` in your `platforms/android/app/src/main/AndroidManifest.xml` file?
   
   Yes it was added there,When i try to capture the picture it was asking storage permission,If i capture the video it's not asking the storage permission.
   ![Screenshot from 2020-07-03 23-09-01](https://user-images.githubusercontent.com/62062821/86489536-42108b00-bd82-11ea-8f9b-ca43c2e5aab7.png)
   


----------------------------------------------------------------
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-camera] Manigandasubbu commented on issue #618: When users installed the android application and try to capture the video first time. Permission is not asked in android mobile's.This was happening in all the android version's

Posted by GitBox <gi...@apache.org>.
Manigandasubbu commented on issue #618:
URL: https://github.com/apache/cordova-plugin-camera/issues/618#issuecomment-653630957


   > Can you tell me if you see `<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />` in your `platforms/android/app/src/main/AndroidManifest.xml` file?
   
   No ,Can i know where should i need to add that,When i try to capture the picture it was asking storage permission,If i capture the video it's not asking the storage permission.


----------------------------------------------------------------
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