cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m-revetria <>
Subject [GitHub] cordova-plugin-camera pull request: [iOS] Returns a specific error...
Date Fri, 04 Dec 2015 14:08:27 GMT
Github user m-revetria commented on the pull request:
    Hi, Nicolas.
    The use case was show an alert message to the user indicating:
       - If he canceled the selection of an image that he must select an image
       in order to continue.
       - If he canceled *due to the app has no access to the photos
       library/camera*, then show an alert message to let the user knows the
       app wasn't granted to access that resource.
    That error could happen in the case where the user previously denied access
    to camera roll and later he opens the camera to take a picture but he
    cancels. In that case `[ALAssetsLibrary authorizationStatus] !=
    ALAuthorizationStatusAuthorized`and the error "has no access to assets" is
    returned wrongly.
    I have solved this problem in commit:
    I didn't create a PR with this change yet.
    [image: xmartlabs website] <>
    iOS Engineer
    <> <>
    On Thu, Dec 3, 2015 at 1:22 PM, Nicolas Leclerc <>
    > Hi, sorry to resurrect an old thread but i'm having trouble with this
    > modification.
    > When users click cancel in camera interface, we get a has no access to
    > assets error instead of no image selected.
    > @m-revetria <> do you have more information
    > about your use case ?
    > I fail to see how this test is pertinent here.
    > If user cancels action then it's just a cancellation, not a auth error.
    > —
    > Reply to this email directly or view it on GitHub
    > <>
    > .

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message