I have installed the linkedin plugin. I’m testing it in a device & I’m not getting any response.This is my code.
// linkedin login
linkedinLogin() {
this.linkedin.login(this.scopes, true)
.then(() => {
this.isLoggedIn = true;
this.getSelfData();
})
.catch(e => console.log('Error logging in', e));
}
// get data from linkedin
getSelfData() {
this.linkedin.getRequest('people/~')
.then(res => {
this.selfData = res;
console.log(this.selfData);
//this.authservices.linkedinAuth(this.selfData);
this.alertShow(this.selfData)
})
.catch(e => console.log(e));
}
alertShow(profileData) {
let alert = this.alertCtrl.create({
message: profileData
});
alert.present();
}
When I click on the button I don’t get responce.