changed config.xml file ton include cordova permissions.