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 2021/10/21 09:32:10 UTC

[GitHub] [cordova-plugin-camera] luongtu996 opened a new issue #771: Error: "No Image Selected" when select take picture from PHOTOLIBRARY

luongtu996 opened a new issue #771:
URL: https://github.com/apache/cordova-plugin-camera/issues/771


   # Bug Report
   
   ## Problem
   
   It always returns "No Image Selected" when source is PHOTOLIBRARY
   
   ### What is expected to happen?
   
   when I call getPicture()
   
   ```
   import { Camera, CameraOptions } from '@ionic-native/camera/ngx';
   
   constructor(private camera: Camera) {}
   
   async getPicture() {
     const options: CameraOptions = {
       allowEdit: false,
       sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
     };
   
     try {
       const imagePath = await this.camera.getPicture(options);
       console.log("Success: ", imagePath);
     } catch(e) {
       console.log("Error: ",e);
     }
   }
   
   ```
   should return a fileURL
   
   ### What does actually happen?
    It always throw error "No Image Selected".
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   I tested on Android 10. it still worked
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   ```
   Device: Xiaomi Redmi note 9 pro
   Platform: Android
   Version: Android 11
   ```
   
   ### 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.
   -->
   ```
   Ionic:
   
      Ionic CLI                     : 6.17.1 (.../.nvm/versions/node/v14.17.1/lib/node_modules/@ionic/cli)
      Ionic Framework               : @ionic/angular 5.8.4
      @angular-devkit/build-angular : 12.1.4
      @angular-devkit/schematics    : 12.2.10
      @angular/cli                  : 12.2.10
      @ionic/angular-toolkit        : 4.0.0
   
   Cordova:
   
      Cordova CLI       : 10.0.0
      Cordova Platforms : android 10.1.1
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 5 other plugins)
   
   Utility:
   
      cordova-res                          : 0.15.3
      native-run (update available: 1.5.0) : 1.4.0
   
   System:
   
      Android SDK Tools : 26.1.1 (.../Library/Android/sdk)
      ios-deploy        : 1.11.4
      ios-sim           : ios-sim/9.0.0 darwin-x64 node-v14.17.1
      NodeJS            : v14.17.1 (.../.nvm/versions/node/v14.17.1/bin/node)
      npm               : 7.19.0
      OS                : macOS Big Sur
      Xcode             : Xcode 13.0 Build version 13A233
   ```
   
   
   ## 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.

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-camera] iPwa97 edited a comment on issue #771: Error: "No Image Selected" when select take picture from PHOTOLIBRARY

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


   > I guess it happens on all Android 11 MIUI phones? Same on: Device: Xiaomi Redmi Note 10s Platform: Android Version: Android 11 MIUI Version: 12.5.13
   
   i try it on same MIUI version on XIAOMI Mi 10T Pro 5G
   
   //Edit same problem on samsung devices


-- 
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-camera] iPwa97 commented on issue #771: Error: "No Image Selected" when select take picture from PHOTOLIBRARY

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


   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-camera] iPwa97 commented on issue #771: Error: "No Image Selected" when select take picture from PHOTOLIBRARY

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


   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-camera] iPwa97 commented on issue #771: Error: "No Image Selected" when select take picture from PHOTOLIBRARY

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






-- 
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-camera] gidiChernyakov commented on issue #771: Error: "No Image Selected" when select take picture from PHOTOLIBRARY

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


   I guess it happens on all Android 11 MIUI phones?
   Same on:
   Device: Xiaomi Redmi Note 10s
   Platform: Android
   Version: Android 11
   MIUI Version: 12.5.13


-- 
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-camera] iPwa97 commented on issue #771: Error: "No Image Selected" when select take picture from PHOTOLIBRARY

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


   has anyone success with the 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-camera] iPwa97 commented on issue #771: Error: "No Image Selected" when select take picture from PHOTOLIBRARY

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


   > I guess it happens on all Android 11 MIUI phones? Same on: Device: Xiaomi Redmi Note 10s Platform: Android Version: Android 11 MIUI Version: 12.5.13
   
   i try it on same MIUI version on XIAOMI Mi 10T Pro 5G


-- 
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-camera] geshub commented on issue #771: Error: "No Image Selected" when select take picture from PHOTOLIBRARY

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


   @iPwa97 @gidiChernyakov If you've got this problem on Xiaomi device, do you have MIUI optimization option turned off on your Developer options ?
   In my case the bug go away if I turn on that option.
   It may not be a problem for regular users then ?


-- 
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-camera] wsq12345 commented on issue #771: Error: "No Image Selected" when select take picture from PHOTOLIBRARY

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


   Add the following line to your config.xml: `<preference name="AndroidLaunchMode" value="singleTop" />`


-- 
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-camera] geshub commented on issue #771: Error: "No Image Selected" when select take picture from PHOTOLIBRARY

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


   Any news on that one ? Got the same problem on Xiami Mi 11 with MIUI 12.5.5 Android 11.
   App is targeting SDK 30


-- 
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-camera] iPwa97 commented on issue #771: Error: "No Image Selected" when select take picture from PHOTOLIBRARY

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


   > Add the following line to your config.xml: `<preference name="AndroidLaunchMode" value="singleTop" />`
   
   in my case, same problem with the line. :(


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