About Linkedin Cordova Plugin

Not working Linkedin Cordova Plugin, its uses not clearly defined …i got error …cordova is not available while also uses in device.

const scopes = [‘r_basicprofile’, ‘r_emailaddress’, ‘rw_company_admin’, ‘w_share’];
this.linkedin.login(scopes, true)
.then(() => console.log(‘Logged in!’)
.catch(e => console.log(‘Error logging in’, e));

let me know some gentleman help me…