Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-5378

iOS: showCamera leaves a black background if saveToPhotoGallery or allowEditing are true

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 1.8.0, Release 5.5.0
    • Fix Version/s: Sprint 2011-39, Release 1.8.0
    • Component/s: iOS
    • Labels:
    • Environment:

      Regression

      Working: 1.7.2, iPhone 4, 4.3
      Not Working: 1.8.0.v20110926170651, iPhone 4, 4.3

    • Story Points:
      1
    • Sprint:
      2019 Sprint 17, 2019 Sprint 18, 2019 Sprint 19, 2019 Sprint 20, 2019 Sprint 21, 2019 Sprint 22, 2019 Sprint 23, 2019 Sprint 24, 2019 Sprint 25

      Description

      If you use showCamera and have either allowEditing or saveToPhotoGallery set to true the screen will be black after taking a picture, after the camera disappears.

      Step 1: run the code below on device
      Step 2: click on the window
      Step 3: take a picture
      Step 4: notice the camera view disappears but the window is still all black
      Step 5: repeat the above steps with 1.7.2 and it will work fine (not leave a black background)

      app.js

      var win = Ti.UI.createWindow({
      	backgroundColor : 'white'
      });
      win.open();
      win.addEventListener('click', function(e) {
      	Titanium.Media.showCamera({
      		// allowEditing : true,
      		saveToPhotoGallery : true,
      		mediaTypes : [Ti.Media.MEDIA_TYPE_VIDEO, Ti.Media.MEDIA_TYPE_PHOTO],
      		success : function(event) {
      			alert('success');
      		},
      		cancel : function() {
      			alert('cancel');
      		},
      		error : function() {
      			alert('error');
      		}
      	});
      });
      

      Associated Helpdesk Ticket

      http://appc.me/c/APP-821739

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jalter Jon Alter
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-4560
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code