devgeeks / Canvas2ImagePlugin

PhoneGap / Cordova plugin for iOS to save the contents of an HTML canvas to the device's Photo Library
211 stars 218 forks source link

No permission to save to photo roll. #10

Closed mrksmts closed 11 years ago

mrksmts commented 11 years ago

When there is no permission given to the app to save an image to the photo roll no feedback function are being called. (iOS 6.1.2)

To simulate this, go to settings > privacy > photos then disable access to photos for the specific app.

It will throw the following error: ERROR: Error Domain=ALAssetsLibraryErrorDomain Code=-3310 "Data unavailable" UserInfo=0x1f0836e0 {NSLocalizedRecoverySuggestion=Launch the Photos application, NSUnderlyingError=0x1e5bdb10 "Data unavailable", NSLocalizedDescription=Data unavailable}

After that it does not seem to call the webview callbacks.