Titanium JIRA Archive
Appcelerator Community (AC)

[AC-575] Ti.Media.showCamera error: Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2016-01-21T08:47:31.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsAlloy, Studio, Titanium SDK & CLI
Labelsios, iphone
ReporterJohn Marott
AssigneeShak Hossain
Created2016-01-21T00:08:39.000+0000
Updated2016-01-21T10:06:54.000+0000

Description

API fails to produce an image for me to work with. It is however saved in the iPhone standard photo gallery. (iPhone6 updated to current IOS version) Exactly the same happens on an Android device. The API does not give me an image to work with although it is saved in the devices standard photo gallery. A test project is attached as well as the console output from a test run on iOS device.

Attachments

FileDateSize
app.zip2016-01-21T00:05:24.000+000010428400
cameraTest console output.rtf2016-01-21T00:03:55.000+000023727

Comments

  1. Sharif AbuDarda 2016-01-21

    Hello, Looking to your project, It looks like you have a coding mistake. In index.js line 15 it should be
       if (event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO)
       
    not
       if (event.mediaType == Ti.MEDIA_TYPE_PHOTO)
       
    This is working. Thanks.
  2. John Marott 2016-01-21

    Thank You so much. I spend hours without seeing the obvious. :-( Kind regards John Marott

JSON Source