how to use cordova-plugin-screenrecord

I am trying to record the screen of my cordova app by using

https://www.npmjs.com/package/cordova-plugin-screenrecord

It does show this msg. But after that it minimizes/exits the app .. once Start Now is pressed.

Please help.

Rgrds Brij