Keyboard not popping up inside webview android


I am loading the www/index.html file inside a webView created using ionic.

All the pages and the transitions are working fine but the keyboard is not popping up on click of a text field.
Cordova is not defined is the error message I keep on getting.In the index.html there is a cordova script tag without any path specified.Do I have to manually install the cordova.js file in my project.

<script src="cordova.js"/>

Can anyone help on this issue???