Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12195

camera & webview rotated into portrait on landscape iPhone app in 8/10 times

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • cordova-plugin-camera
    • iPhone 7 (used to reproduce on iPhone 6s as well)
      iOS 10.1.1, iOS 9 showed this as well
      cordova 6.4.0
      cordova-plugin-camera 2.3.0

    Description

      steps to reproduce

      • create cordova app
        cordova create MyAppTest33
        cd MyAppTest33/
        cordova platform add ios
        cordova plugin add cordova-plugin-camera --variable CAMERA_USAGE_DESCRIPTION=" " --variable PHOTOLIBRARY_USAGE_DESCRIPTION=" " --save
        
      • add camera sample code to www folder
        https://github.com/Icenium/Sample-Camera/blob/master/Camera%20Sample/index.html
        https://github.com/Icenium/Sample-Camera/blob/master/Camera%20Sample/scripts/main.js
        https://github.com/Icenium/Sample-Camera/blob/master/Camera%20Sample/styles/theme.css
        
      • change config.xml to landscape app
        <preference name="Orientation" value="landscape" />
        

      action: hold phone in portrait & open camera on iPhone

      • hold iPhone in portrait
      • open app on real device: iPhone
      • open camera ('take picture')

      problem: camera window is rotated 90°

      • camera window is rotated 90°, shutter button not visible

      (it seems, that the webview is rotated first before the camera shows up)

      -> See attached screenshots for the whole sequence

      root cause are all variants of status-bar-plugin

      • reproduces in 8 out of 10 attempts
      • disappears after double-clicking the home-button and re-entering the app
      • occurs mostly on first app start, after making it disappear once by double-clicking the home-button it does not appear again

      Attachments

        1. 01.png
          817 kB
          Michael Schmidt
        2. 02.png
          655 kB
          Michael Schmidt
        3. 03.png
          583 kB
          Michael Schmidt
        4. 04.png
          627 kB
          Michael Schmidt
        5. 05.png
          666 kB
          Michael Schmidt
        6. 06.png
          2.43 MB
          Michael Schmidt

        Activity

          People

            Unassigned Unassigned
            mobidev3 Michael Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: