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 2022/06/29 09:04:15 UTC

[GitHub] [cordova-plugin-camera] Houdhey opened a new issue, #797: Android 13 :

Houdhey opened a new issue, #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797

   # Bug Report
   `Msg: cannot open camera:  20`
   
   
   ## Problem
   Camera doesn't open, Gallery doesn't open, for Android 13 emulator 
   
   
   ### What is expected to happen?
   Camera should open, Gallery should open
   
   
   ### What does actually happen?
   Nothing, display a bug message : `Msg: cannot open camera:  20`
   `E/Capacitor/Browser: Error binding to custom tabs service`
   
   
   
   
   
   ### Command or Code
   
   ```
       const options: CameraOptions = {
         quality: 100,
         destinationType: this.camera.DestinationType.DATA_URL,
         sourceType: this.camera.PictureSourceType.SAVEDPHOTOALBUM,
         correctOrientation: true,
         allowEdit: false,
         targetHeight: 1280,
         targetWidth: 1280,
       };
   
       this.camera.getPicture(options).then()....
   
     
   ```
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   Ionic, Android 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.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


Re: [I] Android 13 : Camera/Gallery doesn't open [cordova-plugin-camera]

Posted by "NikhilJainCurve (via GitHub)" <gi...@apache.org>.
NikhilJainCurve commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1846632170

   https://github.com/felicienfrancois/cordova-plugin-camera#e6e49b85b59263fc5782e835160d01a8932e3690 is not working for me and giving me below error inAndroid Studio while building the app 
   
   Android build failed: Caused by: java.lang.RuntimeException: Unable to determine Android SDK directory.
   


-- 
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] Tolfx commented on issue #797: Android 13 : Camera/Gallery doesn't open

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

   Is there any work to actually fix this issue? The solution above me doesn't seem that fitting since it can crash the application if the user declines to give access to the camera/gallery. Is there a reason why all the `grantResults` are `-1` for android 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] jfoclpf commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "jfoclpf (via GitHub)" <gi...@apache.org>.
jfoclpf commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1415816402

   Just to clarify, I should install plugin like this
   
   ```
   cordova plugin add https://github.com/apache/cordova-plugin-camera.git#pull/814/master
   ```
   
   Just temporarily obviously, till it is integrated and deployed into NPM repository


-- 
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] felicienfrancois commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "felicienfrancois (via GitHub)" <gi...@apache.org>.
felicienfrancois commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1419592163

   @Houdhey @keva91 this issue was already discussed on the PR.
   It is due to manifest merge conflicts with other plugins using WRITE_EXTERNAL_STORAGE permission without setting android:maxSdkVersion="32" in their manifest.
   
   As discussed on the PR #814 , the android:maxSdkVersion="32" constraint should be removed from the PR as it would create issues for most people.
   
   Also, from my tests, #814 PR has also another issue with DATA_URI output.
   
   I forked this PR to solve both issues here : https://github.com/felicienfrancois/cordova-plugin-camera
   


-- 
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] Houdhey commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "Houdhey (via GitHub)" <gi...@apache.org>.
Houdhey commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1413725922

   Hello @jfoclpf  
   Yes, there is a similar Pull Request doing this : https://github.com/apache/cordova-plugin-camera/pull/814/files
   Now the problem is fixed, I can't reproduce the bug. 
   Thank you for your investigation @jfoclpf , and thanks to all investigators. I can close 
   


-- 
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] felicienfrancois commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "felicienfrancois (via GitHub)" <gi...@apache.org>.
felicienfrancois commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1436098611

   @jfoclpf Yes. Specifying a min or max sdk version creates conflicts with other plugins, even some officail plugins.
   It seems that not specifying any min or max sdk version does not create any issue (I think it is ignored by versions not supporting this permission), but it still need to be validated.
   As a result, I would recommend to remove minSdkVersion and maxSdkVersion from the PR


-- 
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] jfoclpf commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "jfoclpf (via GitHub)" <gi...@apache.org>.
jfoclpf commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1474342908

   @jkainth that PR is working OK, you can install that PR, but you can use also @felicienfrancois repo, it's working just fine, I'm using it in two of my projects
   
   github:felicienfrancois/cordova-plugin-camera


-- 
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] Houdhey commented on issue #797: Android 13 : Camera/Gallery doesn't open

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

   After investigating, the error comes from this method on CameraLauncher.java file : 
   
   ```
       public void onRequestPermissionResult(int requestCode, String[] permissions,
                                             int[] grantResults) {
           for (int r : grantResults) {
               System.out.println("PHOTO DEBUG - " + r);
            /*   if (r == PackageManager.PERMISSION_DENIED) {
                   this.callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, PERMISSION_DENIED_ERROR));
                   System.out.println("PHOTO DEBUG - " + r);
                   return;
               }
   */
   
           }
           switch (requestCode) {
               case TAKE_PIC_SEC:
                   takePicture(this.destType, this.encodingType);
                   break;
               case SAVE_TO_ALBUM_SEC:
                   this.getImage(this.srcType, this.destType);
                   break;
           }
       }
   ```
   
   If I comment this section about comparing value of r and PackageManager.PERMISSION_DENIED value, camera and gallery work good.
   I'm not Android Expert but i try to get explanations


-- 
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] Houdhey commented on issue #797: Android 13 : Camera/Gallery doesn't open

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

   > breautek
   
   I tried adding the permissions as said in the Android doc https://developer.android.com/about/versions/13/behavior-changes-13
   
   Like this : 
   ```<manifest ...>
       <!-- Required only if your app targets Android 13. -->
       <!-- Declare one or more the following permissions only if your app needs
       to access data that's protected by them. -->
       <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
       <uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
       <uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
   
       <!-- Required to maintain app compatibility. -->
       <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
                        android:maxSdkVersion="32" />
       <application ...>
           ...
       </application>
   </manifest>```
   
   But it didn't change. "Cannot open camera : 20" , "Cannot open gallery : 20"
   


-- 
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] felicienfrancois commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "felicienfrancois (via GitHub)" <gi...@apache.org>.
felicienfrancois commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1420591526

   @keva91 thank you for your feedback, I have not submitted my fork as a PR yet because it deserve tests and adjustment on the required permissions at runtime, depending on case.
   I personaly use it with success, in DATA_URI mode.
   
   Can you tell me what is your usage DATA_URI, FILE ? Taking photo or picking from library ?
   
   Also, you can try thoose different versions :
   
   - READ_MEDIA_IMAGES Always requested (Same as this PR)
   `https://github.com/felicienfrancois/cordova-plugin-camera#f53d3cb2ef5add8f7ba37503c4a10fc8e1337600`
   
   - READ_MEDIA_IMAGES Never requested (The one I use)
   `https://github.com/felicienfrancois/cordova-plugin-camera#e6e49b85b59263fc5782e835160d01a8932e3690`
   
   - READ_MEDIA_IMAGES requested only when picking from library (Head, i.e. the one you tried)
   `https://github.com/felicienfrancois/cordova-plugin-camera#efcd9190d98130d815b442b96e0c69fe17637908`
   
   As far as I understand, the READ_MEDIA_IMAGES should not be requested as it may not be granted and it is not necessary, at least in my case. But maybe it is needed when using FILE mode
   


-- 
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] keva91 commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "keva91 (via GitHub)" <gi...@apache.org>.
keva91 commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1420551256

   @felicienfrancois 
   I tried your fork and yes i can build now but i still get the error '20' on android 13 phone. 
   


-- 
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] jkainth commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "jkainth (via GitHub)" <gi...@apache.org>.
jkainth commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1474347718

   @jfoclpf  thanks. I might have to. 
   I'm using OneSignal that forces SDK version to be 33 - and coz of that my cameras are borked. 
   Will try this weekend.


-- 
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] breautek commented on issue #797: Android 13 : Camera/Gallery doesn't open

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

   Confirmed on pure cordova app
   
   Cordova android v11.0.0
   cordova camera plugin v6.0.0
   
   Build Tools / Target SDK 33 on Android 13 emulator
   
   Error code 20 is produced to the JS console
   
   Native logcat:
   
   ```
   07-16 00:23:38.096   575   914 V UserSystemPackageInstaller: dumpPackageWhitelistProblems(): using mode ENFORCE|IMPLICIT_WHITELIST|IMPLICIT_WHITELIST_SYSTEM
   07-16 00:23:38.113   575   914 I ActivityTaskManager: START u0 {act=android.content.pm.action.REQUEST_PERMISSIONS pkg=com.google.android.permissioncontroller cmp=com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity (has extras)} from uid 10157
   07-16 00:23:38.120  6334  6334 D CordovaActivity: Paused the activity.
   07-16 00:23:38.121   575   917 W ActivityTaskManager: Tried to set launchTime (0) < mLastActivityLaunchTime (352665)
   07-16 00:23:38.125   575   594 D OomAdjuster: Not killing cached processes
   07-16 00:23:38.142   575   917 D CoreBackPreview: Window{e737f07 u0 com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@c13665d, mPriority=0}
   07-16 00:23:38.150   402   446 D goldfish-address-space: claimShared: Ask to claim region [0x3f683d000 0x3f6e40000]
   07-16 00:23:38.160  6334  6334 D CordovaActivity: Resumed the activity.
   07-16 00:23:38.161  6334  6334 I chromium: [INFO:CONSOLE(1)] "20", source:  (1)
   07-16 00:23:38.173   575   917 D CoreBackPreview: Window{e737f07 u0 com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity}: Setting back callback null
   07-16 00:23:38.173   575  3087 W InputManager-JNI: Input channel object 'e737f07 com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity (client)' was disposed without first being removed with the input manager!
   07-16 00:23:38.189  7107  7107 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3204 
   07-16 00:23:38.190  7107  7107 I GoogleInputMethodService: GoogleInputMethodService.updateDeviceLockedStatus():2100 checkRepeatedly = false, unlocked = true
   07-16 00:23:38.190  7107  7107 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1903 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x12000000 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=io.cordova.hellocordovagh797 fieldId=100 fieldName=null extras=null}, false)
   07-16 00:23:38.190  7107  7107 I GoogleInputMethodService: GoogleInputMethodService.updateDeviceLockedStatus():2100 checkRepeatedly = true, unlocked = true
   ```
   
   At a glance, it appears something to do with handling permissions has changed in Android 13, as error code `20` is a Permission Error Code...
   
   https://github.com/apache/cordova-plugin-camera/blob/4608f8ef8027a5c7130a3479c2d37a5e391c70e8/src/android/CameraLauncher.java#L100


-- 
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] keva91 commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "keva91 (via GitHub)" <gi...@apache.org>.
keva91 commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1422964001

   > @keva91 ok, thank you. So PR #814 has definitelly an issue with READ_MEDIA_IMAGES. According to android doc this permission is required when accessing images on external storage or created by other apps so there may still be cases where it is needed. I just made another change on my fork (adding READ_MEDIA_IMAGES to manifest), if you want to test it: `https://github.com/felicienfrancois/cordova-plugin-camera#7d66143ed55d817676c10a460c66938519d4b85b`
   
   It works too. And it also prompt for permissions which is better i think :)


-- 
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] felicienfrancois commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "felicienfrancois (via GitHub)" <gi...@apache.org>.
felicienfrancois commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1421073681

   @keva91 ok, thank you. So PR #814 has definitelly an issue with READ_MEDIA_IMAGES.
   According to android doc this permission is required when accessing images on external storage or created by other apps so there may still be cases where it is needed.
   I just made another change on my fork (adding READ_MEDIA_IMAGES to manifest), if you want to test it:
   `https://github.com/felicienfrancois/cordova-plugin-camera#7d66143ed55d817676c10a460c66938519d4b85b`


-- 
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] jfoclpf commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "jfoclpf (via GitHub)" <gi...@apache.org>.
jfoclpf commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1435957864

   @felicienfrancois regarding your repo and user permissions, should't your add min and max sdk versions to avoid conflicts? That is:
   
   ```xml
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
   <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" android:minSdkVersion="33" />
   ```
   


-- 
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] Houdhey commented on issue #797: Android 13 : Camera/Gallery doesn't open

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

   Can we have an update on this bug please? 
   I think Android 13 is gonna be released soon 


-- 
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] jfoclpf commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "jfoclpf (via GitHub)" <gi...@apache.org>.
jfoclpf commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1420572657

   @keva91 read this [comment](https://github.com/apache/cordova-plugin-camera/pull/814#issuecomment-1324022495)
   
   Try using PR #814 as you did before and try to guess which plugin is creating the conflict, the one which uses `WRITE_EXTERNAL_STORAGE` without setting `android:maxSdkVersion`
   
   Can you show us your list of plugins?


-- 
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] Houdhey commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "Houdhey (via GitHub)" <gi...@apache.org>.
Houdhey commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1414042236

   Commenting the code is not sufficient, so the PR solved it, that's the hack
   i was using actually but i should've make a PR
   
   Le jeu. 2 févr. 2023 à 17:11, João Pimentel Ferreira <
   ***@***.***> a écrit :
   
   > @Houdhey <https://github.com/Houdhey> but did you solve the problem with
   > that PR or by commenting the code as you've shown above?
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1413995359>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AKVL4ARWDLGIRNM2EELBSOLWVPMEFANCNFSM52E6T4NQ>
   > .
   > You are receiving this because you were mentioned.Message ID:
   > ***@***.***>
   >
   -- 
   Houdheyfa Bouzid
   Software Engineer chez InTech
   


-- 
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] TDola commented on issue #797: Android 13 : Camera/Gallery doesn't open

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

   I am hoping for this bug to be fixed too.  It is producing strange results where the gallery refuses to open on Android 33 Emulator, but works fine on my Pixel 7 with Android 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] vaibhav65577 commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "vaibhav65577 (via GitHub)" <gi...@apache.org>.
vaibhav65577 commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1642461847

   Hi @AndrWeisR ,
   I had similar issue how can I fix that?
   
   Can you provide exact solution /steps to fix 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-camera] jfoclpf commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "jfoclpf (via GitHub)" <gi...@apache.org>.
jfoclpf commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1411723237

   > Is there a reason why all the `grantResults` are `-1` for android 13?
   
   Because Google changed permission requirements with Android 13
   
   https://developer.android.com/about/versions/13/behavior-changes-13?hl=en
   
   


-- 
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] keva91 commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "keva91 (via GitHub)" <gi...@apache.org>.
keva91 commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1419562777

   Hi , 
   I tried to use the PR but i still can't build :/  : 
   ![image](https://user-images.githubusercontent.com/8873491/217055862-0c8cc5a4-1ecd-4913-a582-c0de7827d60a.png)
   
   
   This is my setup : 
   ![image](https://user-images.githubusercontent.com/8873491/217055889-88aaa38c-638e-4d63-9cca-4be74537bbd5.png)
   ![image](https://user-images.githubusercontent.com/8873491/217055914-8baefda3-e9a9-4d2e-b53d-d1a3e006fb04.png)
   ![image](https://user-images.githubusercontent.com/8873491/217055933-aa229409-bbd8-4366-b587-288aecdd7a1b.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.

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] keva91 commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "keva91 (via GitHub)" <gi...@apache.org>.
keva91 commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1420963064

   > Also, you can try thoose different versions :
   > 
   > * READ_MEDIA_IMAGES Always requested (Same as PR [Android 13 support #814](https://github.com/apache/cordova-plugin-camera/pull/814) )
   >   `https://github.com/felicienfrancois/cordova-plugin-camera#f53d3cb2ef5add8f7ba37503c4a10fc8e1337600`
   android 13: ❌
   android 11: ✅
   android 10: ✅
   > * **READ_MEDIA_IMAGES Never requested (The one I use)**
   >   `https://github.com/felicienfrancois/cordova-plugin-camera#e6e49b85b59263fc5782e835160d01a8932e3690`
   android 13: ✅
   android 11: ✅
   android 10: ✅
   > * READ_MEDIA_IMAGES requested only when picking from library (Head, i.e. the one you tried)
   >   `https://github.com/felicienfrancois/cordova-plugin-camera#efcd9190d98130d815b442b96e0c69fe17637908`
   android 13: ❌
   android 11: ✅
   android 10: ✅
   
   
   
   


-- 
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] ssrajasekaran commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "ssrajasekaran (via GitHub)" <gi...@apache.org>.
ssrajasekaran commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1643056827

   I think it should be a bug in api 33. It could be override by removing for
   loop in below code
   
   ```    public void onRequestPermissionResult(int requestCode, String[]
   permissions,
                                             int[] grantResults) {
           for (int r : grantResults) {
               System.out.println("PHOTO DEBUG - " + r);
            /*   if (r == PackageManager.PERMISSION_DENIED) {
                   this.callbackContext.sendPluginResult(new
   PluginResult(PluginResult.Status.ERROR, PERMISSION_DENIED_ERROR));
                   System.out.println("PHOTO DEBUG - " + r);
                   return;
               }
   */
   
           }
           switch (requestCode) {
               case TAKE_PIC_SEC:
                   takePicture(this.destType, this.encodingType);
                   break;
               case SAVE_TO_ALBUM_SEC:
                   this.getImage(this.srcType, this.destType);
                   break;
           }
       }```
   
   On Wed, 19 Jul, 2023, 10:45 pm vaibhav65577, ***@***.***>
   wrote:
   
   > Hi @AndrWeisR <https://github.com/AndrWeisR> ,
   > I had similar issue how can I fix that?
   >
   > Can you provide exact solution /steps to fix this
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1642461847>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AEYQQJQSHOAHDMHHYQYSLZTXRAI25ANCNFSM52E6T4NQ>
   > .
   > You are receiving this because you commented.Message ID:
   > ***@***.***>
   >
   


-- 
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] jfoclpf commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "jfoclpf (via GitHub)" <gi...@apache.org>.
jfoclpf commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1435961899

   I see @felicienfrancois , I tested now, although correct my suggestions they are more likely to create conflicts with other plugins.


-- 
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] LeParadoxHD commented on issue #797: Android 13 : Camera/Gallery doesn't open

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

   In my case picking an image from Library works, but taking an image with whichever options gives the error `Illegal Argument Exception`


-- 
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] jfoclpf commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "jfoclpf (via GitHub)" <gi...@apache.org>.
jfoclpf commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1413995359

   @Houdhey but did you solve the problem with that PR or by commenting the code as you've shown 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] Houdhey commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "Houdhey (via GitHub)" <gi...@apache.org>.
Houdhey commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1419581234

   > Hi , I tried to use the PR but i still can't build 🤔 I got this error : ![image](https://user-images.githubusercontent.com/8873491/217055862-0c8cc5a4-1ecd-4913-a582-c0de7827d60a.png)
   > 
   > This is my setup : ![image](https://user-images.githubusercontent.com/8873491/217055889-88aaa38c-638e-4d63-9cca-4be74537bbd5.png) ![image](https://user-images.githubusercontent.com/8873491/217055914-8baefda3-e9a9-4d2e-b53d-d1a3e006fb04.png) ![image](https://user-images.githubusercontent.com/8873491/217055933-aa229409-bbd8-4366-b587-288aecdd7a1b.png)
   
   Show your full 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.

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] jfoclpf commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "jfoclpf (via GitHub)" <gi...@apache.org>.
jfoclpf commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1436107388

   @felicienfrancois just tested now with these configs and works fine
   
   ```xml
   ```xml
     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
     <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" android:minSdkVersion="33" />
     <uses-permission android:name="android.permission.READ_MEDIA_VIDEO" android:minSdkVersion="33" />
   ```
   


-- 
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] AndrWeisR commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "AndrWeisR (via GitHub)" <gi...@apache.org>.
AndrWeisR commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1563720545

   For what it's worth, using `https://github.com/felicienfrancois/cordova-plugin-camera#e6e49b85b59263fc5782e835160d01a8932e3690` solved my error 20 problem on API 33 as well.


-- 
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] felicienfrancois commented on issue #797: Android 13 : Camera/Gallery doesn't open

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

   This pull request seems a try to fix this issue : https://github.com/apache/cordova-plugin-camera/pull/814
   I tried to install it but got some compilation error and it does not solve the issue 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-camera] keva91 commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "keva91 (via GitHub)" <gi...@apache.org>.
keva91 commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1420773665

   > @keva91 read this [comment](https://github.com/apache/cordova-plugin-camera/pull/814#issuecomment-1324022495)
   > 
   > Try using PR #814 as you did before and try to guess which plugin is creating the conflict, the one which uses `WRITE_EXTERNAL_STORAGE` without setting `android:maxSdkVersion`
   > 
   > Can you show us your list of plugins?
   
   ![image](https://user-images.githubusercontent.com/8873491/217256353-2d6d0ca7-df2d-4be9-8345-9657441d31c8.png)
   
   
   
   
   > @keva91 thank you for your feedback, I have not submitted my fork as a PR yet because it deserve tests and adjustment on the required permissions at runtime, depending on case. I personaly use it with success, in DATA_URI mode.
   > 
   > Can you tell me what parameters do you use ? Which mode ? DATA_URI ? FILE ? Taking photo or picking from library ?
   > 
   > Also, you can try thoose different versions :
   > 
   > * READ_MEDIA_IMAGES Always requested (Same as PR [Android 13 support #814](https://github.com/apache/cordova-plugin-camera/pull/814) )
   >   `https://github.com/felicienfrancois/cordova-plugin-camera#f53d3cb2ef5add8f7ba37503c4a10fc8e1337600`
   > * **READ_MEDIA_IMAGES Never requested (The one I use)**
   >   `https://github.com/felicienfrancois/cordova-plugin-camera#e6e49b85b59263fc5782e835160d01a8932e3690`
   > * READ_MEDIA_IMAGES requested only when picking from library (Head, i.e. the one you tried)
   >   `https://github.com/felicienfrancois/cordova-plugin-camera#efcd9190d98130d815b442b96e0c69fe17637908`
   > 
   > As far as I understand, the READ_MEDIA_IMAGES should not be requested as it may not be granted (even refused without prompt in my case) and it is not necessary, at least in my case. But maybe it is needed when using FILE mode
   
   I use FILE_URI with few parameters when i try to take a photo : 
   ![image](https://user-images.githubusercontent.com/8873491/217256906-2e16f9fa-742d-480c-9924-90d84459991d.png)
   
   @felicienfrancois I'll try those different versions thank you 😉
   


-- 
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] Houdhey commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "Houdhey (via GitHub)" <gi...@apache.org>.
Houdhey commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1415859424

   Actually, at the time I opened this bug,  I was using this plugin with Capacitor 2.0 (I don't know if they totally replaced Cordova).
   So my installation process was : npm install@ionic-native/camera && npm install cordova-plugin-camera
   
   Now, I don't work anymore on this project, so I created a new Ionic Project, and installed same versions that was bugging at the time.
   With this : npm install@ionic-native/camera@5.36.0 && npm install cordova-plugin-camera@6.0.0
   And with this new project, Camera is working. But it uses Capacitor 4
   
   I couldn't update Capacitor in my project, in the time I opened this bug. So if you still have this bug, I recommend you to upgrade latest version of Capacitor.
   
   If you need more help, we can see this in a private conversation 
   


-- 
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] ssrajasekaran commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "ssrajasekaran (via GitHub)" <gi...@apache.org>.
ssrajasekaran commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1600624367

   Hi everyone,
       I Had similar error, and I fixed it by installing cordova-plugin-android-permissions plugin. Try 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.

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] jkainth commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "jkainth (via GitHub)" <gi...@apache.org>.
jkainth commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1474311121

   @felicienfrancois  Whats the status of your Fork? Are you planning to PR it? 
   The main 814 PR seems to have gone silent.
   
   My app update is busted. 
   Was wondering how safe is it to use your fork - until the official PR goes through?


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


Re: [I] Android 13 : Camera/Gallery doesn't open [cordova-plugin-camera]

Posted by "vikrantttriazinesoft (via GitHub)" <gi...@apache.org>.
vikrantttriazinesoft commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1764239508

   1 ionic cordova platform rm android
   2 ionic cordova plugin rm cordova-plugin-camera
   3 ionic cordova platform add android@12.0.0
   4 cordova plugin add https://github.com/apache/cordova-plugin-camera.git
   5 In project structure (Project) change
   	gradle plugin version : 7.1.2
   	gradle version :  7.5
   6 In project structure (SDK Location) of Gradle Settings
   
   	Gradle Jdk :  corretto-17
   
   use these steps and now you can access the camera


-- 
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] xuanphu123 commented on issue #797: Android 13 : Camera/Gallery doesn't open

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

   hello.. 
   any update for 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-camera] coderbit-net commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by GitBox <gi...@apache.org>.
coderbit-net commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1315134662

   Hi all, 
   is there any information on this issue and if/when it's planned to be fixed? 
   Regards 


-- 
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] jfoclpf commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "jfoclpf (via GitHub)" <gi...@apache.org>.
jfoclpf commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1413589415

   @Houdhey now I have no access to my test PC, but instead of commenting that portion of code, can you kindly just make another test? Can you try to replace all the `READ_EXTERNAL_STORAGE` entries by `READ_MEDIA_IMAGES` in `/src/android/CameraLauncher.java` and see if it works? Pleeease ;)


-- 
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] jfoclpf commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "jfoclpf (via GitHub)" <gi...@apache.org>.
jfoclpf commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1411864902

   Before Android 13 the permission requested was [`READ_EXTERNAL_STORAGE`](https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE)
   
   With Android 13 and higher this permissions was divided in three: Images, Video and Audio. For this plugin we just need images, thus with Android 13 and higher we will need to request [`READ_MEDIA_IMAGES`](https://developer.android.com/reference/android/Manifest.permission#READ_MEDIA_IMAGES)
   
   It should be noted this just happens for new installations
   > if your app was previously granted the [READ_EXTERNAL_STORAGE](https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE) permission, then any requested READ_MEDIA_* permissions are granted automatically when upgrading
   
   @breautek I was digging into the repo and `READ_EXTERNAL_STORAGE` just popups in  `/src/android/CameraLauncher.java`. I guess we should have some sort of global switch that replaces `READ_EXTERNAL_STORAGE` by `READ_MEDIA_IMAGES` when faced with Android 13 or higher. This will be backwards compatible because, as said if `READ_EXTERNAL_STORAGE` was already granted in Android 12 or lower and user upgraded to Android 13, `READ_MEDIA_IMAGES` is granted automatically.
   
   


-- 
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] Houdhey closed issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "Houdhey (via GitHub)" <gi...@apache.org>.
Houdhey closed issue #797: Android 13 : Camera/Gallery doesn't open
URL: https://github.com/apache/cordova-plugin-camera/issues/797


-- 
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] jfoclpf commented on issue #797: Android 13 : Camera/Gallery doesn't open

Posted by "jfoclpf (via GitHub)" <gi...@apache.org>.
jfoclpf commented on issue #797:
URL: https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1436105293

   you're right @felicienfrancois just tested now and the build fails due to conflicts with other plugins. But `READ_MEDIA_IMAGES` is totally new, you can add min sdk here, since no other plugins use this permission. The conflict arises from `WRITE_EXTERNAL_STORAGE`


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