How to build cordova plugin and how to use with ionic2?

can any one help me with this.I have seen different solutions nothing seems to be work

What did you see and why didn’t it work?

Thanks for your reply,


based on that link solution i followed each step we are able to build cordova plugin but we are unable to call that plugin in ionic2.