# How to use cordova plugins in ionic?

**URL:** <https://forum.ionicframework.com/t/how-to-use-cordova-plugins-in-ionic/13008>\
**Category:** ionic-v1\
**Created:** [November 21, 2014, 4:33am UTC](https://forum.ionicframework.com/t/how-to-use-cordova-plugins-in-ionic/13008 "2014-11-21T04:33:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![b24](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@b24](https://forum.ionicframework.com/u/b24)\
**Post date:** [November 21, 2014, 4:33am UTC](https://forum.ionicframework.com/t/how-to-use-cordova-plugins-in-ionic/13008/1 "2014-11-21T04:33:58Z")

</div>

I’m a beginner in cordova and ionic development and I want to know more about using cordova plugins in ionic application to create more powerfull mobile applications. I need some guidence and need your help to understand this concept.

**My first question is:**  
As I’ve understood we can use how to use cordova plugins with ngCordova wrapper but for other third party cordova plugin ngCordova couldn’t help me. Is this true?

**My second question is:**  
For example I want to use this helloworld plugin in ionic. Please write step by step guideline for beginner’s like me.

I know that how to install plugin with cordova CLI but I need to learn how to reference and use plugin in my ionic application:

```
cordova plugin add https://github.com/domaemon/org.apache.cordova.plugin.helloworld.git 

```

Thanks for your attention.

---

<div class="post-metadata">

**Author:** ![edd](https://avatars.discourse-cdn.com/v4/letter/e/8c91f0/32.png) [@edd](https://forum.ionicframework.com/u/edd)\
**Post date:** [November 21, 2014, 1:01pm UTC](https://forum.ionicframework.com/t/how-to-use-cordova-plugins-in-ionic/13008/2 "2014-11-21T13:01:56Z")

</div>

> [@b24](#):
>
> use cordova plugins with ngCordova wrapper but for other third party cordova plugin ngCordova couldn’t help me. Is this true?

ngCordova is a library of Angular wrappers for a collection of normal cordova plugins. You can use cordova plugins with or without an Angular wrapper in Ionic. There are lots of cordova plugins and not all have had a wrapper added to ngCordova yet.

> [@b24](#):
>
> how to reference and use plugin in my ionic application:

> **[GitHub - domaemon/org.apache.cordova.plugin.helloworld](https://github.com/domaemon/org.apache.cordova.plugin.helloworld)**
>
> Contribute to domaemon/org.apache.cordova.plugin.helloworld development by creating an account on GitHub.

As 2. says

> Add ‘navigator.helloworld.say();’ in your deviceready callback.

In Ionic the equivalent of “deviceready callback” is in app.js → $ionicPlatform.ready(function() { }

so…

```
angular.module('starter', ['ionic'])
.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {

    // CALL YOUR PLUGIN CODE 
    navigator.helloworld.say()

    // other code here....
  });
})

```
