Cordova: A plugin made for JavaScript developers

Integrating third-party libraries requires either native platform experience or a time-consuming learning curve. To set you on a smoother path, we are introducing a new Cordova plugin that integrates our native iOS and Android SDK for you!


1 min read
Cordova: A plugin made for JavaScript developers

In a perfect world, Cordova should enable web developers to target multiple platforms with one codebase. Yet in reality, developers using Cordova to build cross-platform apps, need to be experienced with the development tool stacks and programming languages of the native platforms. This is particularly the case when integrating native third-party libraries from scratch, as we detailed in a previous blog post.

We are proud to introduce our all-new Cordova plugin integrations cordova-plugin-photoeditorsdk and cordova-plugin-videoeditorsdk for our native PhotoEditor SDK and VideoEditor SDK versions. The interplay of both products allows you to add comprehensive image and video editing tools to your Cordova app for iOS and Android - within minutes.

While crafting our new plugins, the primary objective was to minimize the required platform-specific knowledge and skillset. We are thrilled to provide a wealth of configuration and customization options to developers without forcing them to leave their JavaScript tooling and programming environment.

Bye-bye native platform-specific asset management

Our new utility function loadResource() simplifies the process to pass static assets to the native SDKs. By using it, e.g., in your index.js file, our plugins will take care of resolving the correct platform-specific asset file paths.

The following snippet demonstrates this convenience for customizing the sticker tool (lines 15 to 30) and for passing an input image to the editor (line 33). The only requirement is to make the corresponding images available in your app's www/assets folder.

Further examples

We created a separate repository each for our photo editor example project and video editor example project to prevent our sample assets from unnecessarily increasing the size of your node_modules folder when installing our plugins.

Ionic

Ionic is built on Cordova, so you’re able to use the plugin for your Ionic application as well. Just take a look at our repositories for our photo editor example project and video editor example project, to get started with integrating our SDKs with your Ionic app.

Thank you for your time! To stay in the loop with our latest articles and case studies, subscribe to our Newsletter.

Related Articles

How to Trim and Crop Video in Swift
6 min read
How to Create Image Filters for iOS
7 min read
How to Draw on an Image With JavaScript
7 min read
How To Resize an Image in React
6 min read
How To Resize an Image With JavaScript
4 min read

We’d love to use cookies

Help us improve our Website
We use cookies to provide you with a user-friendly website and for marketing. By clicking accept you agree to the terms of our privacy policy, and help us improve our web presence.

We’d love to use cookies

Help us improve our Website
We use cookies to provide you with a user-friendly website and for marketing. By clicking accept you agree to the terms of our privacy policy, and help us improve our web presence.
Essential Cookies
..are necessary for you to browse our website and use its features, such as accessing secure areas of the site. These cookies are first-party session cookies, and do not provide any information that would make you identifiable.
Functional Cookies
..allow our website to remember choices you have made in the past, like what language you prefer, or what your user name is so you can log in more easily. Generally speaking, they enable us to provide you with a more convenient experience of our website.
Performance Cookies
..collect information about how you use our website, like which pages you visited and which links you clicked on. These cookies are all aggregated and, therefore, anonymized. None of this information can be used to identify you. It is their sole purpose to improve website functions. This includes cookies from third-party analytics services which are for our exclusive use.
Marketing Cookies
..track your online activity and make you identifiable to us. They help us deliver more relevant content to you and therefore improve your user journey. These cookies can share that information with other organizations or advertisers.

GO TOP