# Cordova plugin into IONIC 4

**URL:** <https://forum.ionicframework.com/t/cordova-plugin-into-ionic-4/179829>\
**Category:** cordova\
**Created:** [December 17, 2019, 2:28am UTC](https://forum.ionicframework.com/t/cordova-plugin-into-ionic-4/179829 "2019-12-17T02:28:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chakraveer](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chakraveer/32/64854_2.png) [@chakraveer](https://forum.ionicframework.com/u/chakraveer)\
**Post date:** [December 17, 2019, 2:28am UTC](https://forum.ionicframework.com/t/cordova-plugin-into-ionic-4/179829/1 "2019-12-17T02:28:06Z")

</div>

I am trying to use below existing cordova plugin into my IONIC 4 application. it has installed successfully but i could not find the path to add reference and use it.

`sevensky-cordova-plugin-intent`

How can we use it which is not available in Ionic Native

---

<div class="post-metadata">

**Author:** ![Priyanka34](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/priyanka34/32/129267_2.png) [@Priyanka34](https://forum.ionicframework.com/u/Priyanka34)\
**Post date:** [December 17, 2019, 4:04am UTC](https://forum.ionicframework.com/t/cordova-plugin-into-ionic-4/179829/2 "2019-12-17T04:04:21Z")

</div>

Have you referred below ionic framework documentation ??

> **[Ionic Framework](https://ionicframework.com/docs/v3/native/web-intent/)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

Hope this will helps you.

---

<div class="post-metadata">

**Author:** ![chakraveer](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chakraveer/32/64854_2.png) [@chakraveer](https://forum.ionicframework.com/u/chakraveer)\
**Post date:** [December 17, 2019, 4:16am UTC](https://forum.ionicframework.com/t/cordova-plugin-into-ionic-4/179829/3 "2019-12-17T04:16:31Z")

</div>

> [@Priyanka34](#):
>
> a

Thank you for the reply.

i know about Ionic Framework and developed the app using IONIC 1 as well 4 years ago.

Here i am trying to understand how can we use the Cordova plugin in IONIC 4

---

<div class="post-metadata">

**Author:** ![Priyanka34](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/priyanka34/32/129267_2.png) [@Priyanka34](https://forum.ionicframework.com/u/Priyanka34)\
**Post date:** [December 17, 2019, 4:21am UTC](https://forum.ionicframework.com/t/cordova-plugin-into-ionic-4/179829/4 "2019-12-17T04:21:07Z")

</div>

Please see below link which is for ionic 4.

> **[Web Intent - Ionic Documentation](https://ionicframework.com/docs/native/web-intent)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

---

<div class="post-metadata">

**Author:** ![chakraveer](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chakraveer/32/64854_2.png) [@chakraveer](https://forum.ionicframework.com/u/chakraveer)\
**Post date:** [December 17, 2019, 4:37am UTC](https://forum.ionicframework.com/t/cordova-plugin-into-ionic-4/179829/5 "2019-12-17T04:37:53Z")

</div>

Thank you for this.

I will try this.

but this plugin also developed by Ionic native. can’t we use custom cordova plugin which is not there in ionic native.

All the ionic Native plugin is working fine. but i am not able to use below plugin.

sevensky-cordova-plugin-intent

---

<div class="post-metadata">

**Author:** ![EinfachHans](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/einfachhans/32/130917_2.png) [@EinfachHans](https://forum.ionicframework.com/u/EinfachHans)\
**Post date:** [December 17, 2019, 10:48am UTC](https://forum.ionicframework.com/t/cordova-plugin-into-ionic-4/179829/6 "2019-12-17T10:48:53Z")

</div>

As you can see here:

> <https://github.com/ahmadaghazadeh/sevensky-cordova-plugin-intent/blob/525669f7113a3978b31072b25fabedf0dfd00c2d/plugin.xml>

the Plugin’s name is defined as **intentPlugin** :

```auto
<js-module src="www/intentPlugin.js" name="intentPlugin">
        <clobbers target="intentPlugin" />
</js-module>

```

Try the following:

Declaration:

> declare var intentPlugin: any;

I think the declaration has to go after the imports, but before the class or like me: in a separate file ‘declaration.ts’.

Then try to use it, but you have to check your Spelling, because without wrapper your wrapper could not provide autocomplete functions.
