loppear commented on issue #922: URL: https://github.com/apache/cordova-plugin-camera/issues/922#issuecomment-2610322079
Actually, something was stale in my build. Though I'd confirmed the correct deps were showing up in `node_modules` and `package.json` such that my git history doesn't show a meaningful hint to the cause, some part of the following steps resolves the issue for me, in debug apk and release bundle on physical device. Sorry for the confusion, and hope a clean rebuild fixes others, too. ``` rm -rf node_modules cordova platform remove android cordova plugin remove cordova-plugin-camera cordova plugin add cordova-plugin-camera --save cordova platform add android --save cordova requirements android cordova build android ``` Further wild goose chase confirmation details below, but this was ultimately stale user error somewhere. --- Ok, checked an updated physical Pixel and on clean new Google Play Device Emulators (API 34 and API 35) that I've signed in and updated all apps in Google Play. Looking at logcat for the emulated device, I see the following messages after triggering the `camera.getPicture` call with `sourceType: Camera.PictureSourceType.PHOTOLIBRARY`: ``` ActivityTaskManager system_server I 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)} with LAUNCH_MULTIPLE from uid 10191 (BAL_ALLOW_VISIBLE_WINDOW) result code=0 GrantPermi...sViewModel com....android.permissioncontroller E None of [android.permission.READ_MEDIA_IMAGES, android.permission.READ_MEDIA_VISUAL_USER_SELECTED] in {} CoreBackPreview system_server D Window{c99bf42 u0 com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@7bd3c90, mPriority=0, mIsAnimationCallback=false} WindowManager system_server V Sent Transition #41 createdAt=01-23 10:01:40.269 via request=TransitionRequestInfo { type = OPEN, triggerTask = TaskInfo{userId=0 taskId=16 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=edu..../.MainActivity } baseActivity=ComponentInfo{edu....edu.....MainActivity} topActivity=ComponentInfo{com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity} origActivity=null realActivity=ComponentInfo{edu..../edu.....MainActivity} numActivities=2 lastActiveTime=935958 supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{RemoteToken{bf1a3ff Task{bc4c3d #16 type=standard A=10191:edu....}}} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 lastParentTaskIdBeforePip=-1 displayCutoutS afeInsets=null topActivityInfo=ActivityInfo{b66d989 com.android.permissioncontroller.permission.ui.GrantPermissionsActivity} launchCookies=[] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=true isVisible=true isVisibleRequested=true isSleeping=false topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false topActivityLetterboxed= false isFromDoubleTap= false topActivityLetterboxVerticalPosition= -1 topActivityLetterboxHorizontalPosition= -1 topActivityLetterboxWidth=-1 topActivityLetterboxHeight=-1 locusId=null displayAreaFeatureId=1 cameraCompatControlState=hidden}, remoteTransition = null, displayChange = null } WindowManager system_server V startWCT=WindowContainerTransaction { changes = {} hops = [] errorCallbackToken=null taskFragmentOrganizer=null } WindowManager system_server V info={id=41 t=OPEN f=0x0 trk=0 r=[] c=[]} WindowManagerShell com.android.systemui V onTransitionReady android.os.BinderProxy@b4ca90a: {id=41 t=OPEN f=0x0 trk=0 r=[] c=[]} WindowManagerShell com.android.systemui V No transition roots in (#41)android.os.BinderProxy@b4ca90a@0 so abort WindowManagerShell com.android.systemui V Transition animation finished (aborted=true), notifying core (#41)android.os.BinderProxy@b4ca90a@0 CordovaActivity edu.... D Resumed the activity. WindowManager system_server V Finish Transition #41: created at 01-23 10:01:40.269 collect-started=0.044ms request-sent=7.126ms started=12.71ms ready=117.766ms sent=118.113ms finished=120.004ms chromium edu.... I [INFO:CONSOLE(3734)] "msg 20", source: https://localhost/js/script.js (3734) ``` -- 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-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org