Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get line email? #57

Closed
Selecao opened this issue Apr 29, 2022 · 3 comments
Closed

how to get line email? #57

Selecao opened this issue Apr 29, 2022 · 3 comments

Comments

@Selecao
Copy link

Selecao commented Apr 29, 2022

If using this SDK we can get lineUserId:

final loginResult = await LineSDK.instance.login(scopes: ["profile", "openid", "email"]);
final lineUserId = loginResult.userProfile?.userId;

How we can get lineEmail?

Originally posted by @Selecao in #46 (comment)

@Selecao
Copy link
Author

Selecao commented Apr 29, 2022

Is it something wrong with your scopes after successfull login?
Why Flutter console display that i have no email scopes after login, but when i logged there was a field with "profile", "openid", "email"
final lineScopes = loginResult.scopes.join(', '); // => openid, profile
Line developer console: Email address permission: Applied
I'm using this sdk to login in mobile app with Line

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.5, on Ubuntu 20.04.4 LTS 5.13.0-40-generic, locale ru_RU.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
tested on: Android 11 RKQ1.200826.002
phone: Xiaomi Poco F2 Pro

@Selecao
Copy link
Author

Selecao commented Apr 29, 2022

Screenshot_2022-04-29-14-16-02-050_com android chrome

but when i logged there was a field with "profile", "openid", "email"

@onevcat
Copy link
Member

onevcat commented May 9, 2022

Please see the comment in #46 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants