O'Reilly logo

PhoneGap By Example by Andrey Kovalenko

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a custom plugin to save the picture in the iOS library

We successfully saved the picture into the application's Imaginary folder, but we would like to save the picture with the applied effect to the device's library. In this example, it will be the iOS library.

There is no direct access to the iOS library from the HTML5 FileSystem API. There is no such official plugin. In this case, what we need to do is develop a custom plugin for PhoneGap/Cordova.

I will reference the Cordova plugin development guide and follow all these steps:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required