How can import cordova plugin?


#1

I want to use below cordova plugin in ionic3 project.

https://www.npmjs.com/package/clovelced-plugin-audiomanagement

So I installed like this

ionic cordova plugin add clovelced-plugin-audiomanagement
npm install --save clovelced-plugin-audiomanagement

I think I installed well. But when I import plugin my code, I can’t use.

import { AudioManagement } from ‘clovelced-plugin-audiomanagement’;

error is can’t find ‘clovelced-plugin-audiomanagement’ module.

what is wrong my code???


#2

Which platform, Android or iOS?


#3

This plugin is for Android.

Android build error.