I am getting this error
"Cannot read property 'capture' of undefined"
Hello Rajat!Did you generate a new build for your application?For being a cordova plugin, do you need to generate a new build.
I hope it helps you.
If you already tried it, please give more details of the problem...