nrikiji / cordova-line-login-plugin

A cordova plugin for easy implementation of LINE login using LineSDK.
Apache License 2.0
21 stars 23 forks source link

I want get Line person email data #24

Closed redfire29 closed 5 years ago

redfire29 commented 5 years ago

https://github.com/nrikiji/cordova-line-login-plugin/blob/master/src/ios/LineLogin.swift#L22

i use this code https://developers.line.biz/en/docs/ios-sdk/swift/managing-users/

i change code like this LoginManager.shared.login(permissions: [.profile, .openID, .email]

i can get person email, so can you add a variable to control the permissions: [] array?

nrikiji commented 5 years ago

Thank you very much. I have a desire to get emails, and I would like to respond.Is this also possible for android? You may merge if you do PR.

redfire29 commented 5 years ago

yes, both android & ios. but I don't know how to write native code. so...... can you help me thanks

nrikiji commented 5 years ago

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

thanks. Would you like to publicize the ios fix on this branch?

redfire29 commented 5 years ago

sorry,
I can't write native code.

申し訳ありませんが、ネイティブプログラムは変更しません。

nrikiji commented 5 years ago

https://github.com/redfire29/cordova-line-login-plugin/commit/d4eddbb2e58fc21e4d0b9b5e2f4657fb95d1aa87

Does this code work? Are you sure you want to use this for the ios version?

nrikiji commented 5 years ago

It has been confirmed that you can get Email with the program you reference. The android version is compatible. thanks

nrikiji commented 5 years ago

fixed Supported ios and android with version 0.7.