My code (to test the camera functionality in the app)
((AndroidDriver) driver).pressKeyCode(27);
or
((AndroidDriver) driver).pressKeyCode(AndroidKeyCode.KEYCODE_CAMERA);
doesn't work to take a picture in the app. ( I only have it on the Nexus 5 and Pixel Phone)
When I try cmd adb shell input keyevent 27
in the app, also no reaction. When I try the same cmd in the camera app, it does take a picture.
I do have the same when i try the cmd when i am in Facebook app and try to take a picture.
Has someone seen this behavior before?