How to use non native plugins on Ionic?

Hi All,

I have been looking to use cordova plugin which was not exposed via ionic-native wrapper. I found following command “console.dir(window)”, I used this to dump complete window object and found that some plugins are at (<any>window).plugin, some are at (<any>window).plugins, some are at (<any>window).cordova

I recommend dumping the window object for finding plugin path and then calling functions via proper object structure. It worked for me.

1 Like