You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Michael Schmidt (JIRA)" <ji...@apache.org> on 2016/12/16 18:20:58 UTC
[jira] [Commented] (CB-12260) Camera plugin white screen
[ https://issues.apache.org/jira/browse/CB-12260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15755145#comment-15755145 ]
Michael Schmidt commented on CB-12260:
--------------------------------------
do you have cordova-plugin-statusbar installed? which version?
if yes: updating to the master branch of cordova-plugin-statusbar may help - there were several bugs in the last versions
https://github.com/apache/cordova-plugin-statusbar
> Camera plugin white screen
> --------------------------
>
> Key: CB-12260
> URL: https://issues.apache.org/jira/browse/CB-12260
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS, Plugin Camera
> Affects Versions: cordova-ios@4.3.1
> Environment: Ipad 9.3.5
> Reporter: Timur
> Priority: Critical
>
> After pushing use photo on IPAD white screen appears. Xcode console shows error message 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.
> My code
> makePicture: function () {
> var self = this;
> var deferred = $q.defer();
> if ($rootScope.isCordova) {
> var options = {
> quality: 90,
> destinationType: Camera.DestinationType.DATA_URL,
> sourceType: Camera.PictureSourceType.CAMERA,
> allowEdit: true,
> encodingType: Camera.EncodingType.PNG,
> targetWidth: 320,
> targetHeight: 480,
> saveToPhotoAlbum: false,
> correctOrientation: true
> };
> $cordovaCamera.getPicture(options).then(function (imageData) {
> deferred.resolve(imageData);
> }, function (err) {
> deferred.reject();
> });
> } else {
> deferred.reject();
> }
> The method itself resolves and returns data in base64 but my ionic application shows white screen after using camera.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org