Closed h123eranga closed 3 years ago
I am also facing same issue.
Its not returning user details and simply show a toast message "Login Successfully".
How to get userID & Display name in call back?
Please help us here on ionic 3.
Thanks in advance!
fix.
ionic-native may not be available in ionic3, so I solved it by calling the cordova plugin directly.
Thanks @nrikiji and following is a sample code works for ionic 3
declare` var lineLogin:any;
lineLogin.initialize({channel_id: "***"});
lineLogin.login((result) => { console.log( result.userID); console.log( result.displayName); console.log( result.pictureURL); }, (error) => { console.log("error); });
Showing the loading and the Line Verification screen to Allow permission. Finally, Showing a Toast message saying "Login Successful!" but no response in the promise.
Following are the dependencies. "@ionic-native/line-login": "^4.20.0", "cordova-line-login-plugin": "^1.2.11", "ionic-angular": "3.9.9", or "ionic-angular": "3.9.2",