Flutter教程

Line Login

Contents

The function login, logs out, acquires, verifies, and refreshes the access token. The version of LineSDK you are using is as follows.

https://github.com/nrikiji/cordova-line-login-plugin

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic Line Login插件的安装(Installation)

ionic cordova plugin add cordova-line-login-plugin npm install @ionic-native/line-login
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/line-login

Ionic Line Login插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic Line Login插件的用法(Usage)

import { LineLogin } from '@ionic-native/line-login/ngx';


constructor(private lineLogin: LineLogin) { }

...


this.lineLogin.initialize({ channel_id: "xxxxxxxxxx" })

this.lineLogin.login()
  .then(result => console.log(result))
  .catch(error => console.log(error))