[
https://issues.apache.org/jira/browse/CB-10360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15101840#comment-15101840
]
Fan Luo commented on CB-10360:
------------------------------
Here is the code:
{code:javascript}
getPicture: function (options) {
var q = $q.defer();
if (!navigator.camera) {
q.resolve(null);
return q.promise;
}
alert('getPicture');
alert(JSON.stringify(options, null, 2));
navigator.camera.getPicture(function (imageData) {
alert('Success');
q.resolve(imageData);
}, function (err) {
alert('Fail');
q.reject(err);
}, options);
return q.promise;
},
{code}
and here is the options:
{code:javascript}
{
quality: 75,
destinationType: 1,
encodingType: 0,
allowEdit: false,
saveToPhotoAlbum: false,
targetWidth: 1024,
targetHeight: 1024,
sourceType: 0
}
{code}
I could get the first two alerts, but can not get either ```Success``` or
```Fail``` alerts. Again, this issue does NOT happen on iPhone
> cordovaCamera.getPicture never returns when selecting a photo which was taken
> before upgrading to iOS 9.2 on iPod 5th generation
> --------------------------------------------------------------------------------------------------------------------------------
>
> Key: CB-10360
> URL: https://issues.apache.org/jira/browse/CB-10360
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Camera
> Affects Versions: 1.2.0
> Environment: camera plugin: 1.2.0
> cordova-ios: 3.9.1
> iOS: 9.2
> iPod 5th generation
> Reporter: Fan Luo
> Labels: ios
>
> I upgraded my iPod 5th generation to 9.2 in Dec, 2015, then every time I
> select a photo which was taken before 9.2 upgrade from the photo album,
> cordovaCamera.getPicture never returns any callback, neither success or
> error. If I select photos which were taken after 9.2 upgrade, everything
> works fine, cordovaCamera.gePicture returns either success or error properly.
> Note: this issue does NOT happen on my iPhone, only seems iPod 5th
> Generation. Please help on this issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]