O'Reilly logo

Ionic : Hybrid Mobile App Development by Hoc Phan, Sani Yusuf, Rahat Khanna

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

Custom Cordova plugin development

There are multiple third-party open source plugins available that can be integrated to your Ionic App along with the ngCordova library. If we do not find the required functionality plugin, we can develop a custom Cordova plugin and use it along with the ngCordova library.

We have to write the native code for each platform we want to port our plugin on. The native coding part will be standard according to the procedures followed in the respective native platform. Cordova helps in exposing the same functionality using the native hybrid bridge. In your JavaScript file, you should call the following method to invoke the native functionality:

cordova.exec(successCallback, failureCallback, service, action, [args]);

The ...

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