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

При логине на ios не возвращает email пользователя #25

Open
alexvnz opened this issue May 5, 2017 · 1 comment

Comments

@alexvnz
Copy link

alexvnz commented May 5, 2017

Добрый день,
SocialVk.login(
['email', 'friends', 'photos'],
function(res) {

            }, function(err) {

            });

SocialVK.login на Андроиде возвращает email, а на ios нет. В чем может быть проблема?

@artuska
Copy link

artuska commented Apr 11, 2018

+1, такая же проблема в iOS.

Вот лог в Xcode:

2018-04-11 13:21:10 — SocialVk Plugin initalized
2018-04-11 13:21:10 — THREAD WARNING: ['SocialVk'] took '11.474121' ms. Plugin should use a background thread.
2018-04-11 13:21:18 — VK Token 94fa49bb7bea6ef79444956a8b0509411f075f8a8efe23451799b22bd4bc9dd1fa22d388e08bc01c603d5
2018-04-11 13:21:18 — VK Access authorization finished
2018-04-11 13:21:18 — FB handle url: vk6378811://authorize?#access_token=94fa49bb7bea6ef79444956a8b0509411f075f8a8efe23451799b22bd4bc9dd1fa22d388e08bc01c603d5&expires_in=0&user_id=95451778&[email protected]
2018-04-11 13:21:19 — User response <VKResponse: 0x1594d2fd0; API response: (
        {
        bdate = "4.8.1987";
        city =         {
            id = 1925340;
            title = "R\U012bga";
        };
        country =         {
            id = 12;
            title = Latvia;
        };
        "first_name" = Artur;
        id = 95451778;
        "last_name" = Mudrik;
        nickname = "";
        photo = "https://pp.userapi.com/c629226/v629226778/2afef/5v9eP8nVomo.jpg";
        "photo_big" = "https://pp.userapi.com/c629226/v629226778/2afeb/32cRBL9y9Ts.jpg";
        sex = 2;
        timezone = 3;
    }
)>
2018-04-11 13:21:19 — {"token":"94fa49bb7bea6ef79444956a8b0509411f075f8a8efe23451799b22bd4bc9dd1fa22d388e08bc01c603d5","user":{"bdate":"4.8.1987","city":{"id":1925340,"title":"Rīga"},"country":{"id":12,"title":"Latvia"},"id":95451778,"nickname":"","last_name":"Mudrik","timezone":3,"photo_big":"https://pp.userapi.com/c629226/v629226778/2afeb/32cRBL9y9Ts.jpg","photo":"https://pp.userapi.com/c629226/v629226778/2afef/5v9eP8nVomo.jpg","sex":2,"first_name":"Artur"}}

Тобишь, самый последний лог это console.log(response) после успешного .login() и вывел респонс — как видно, в данных нету email.

Email есть выше, в строчке FB handle url: vk6378811://authorize?..., но как к этому ответу добраться и вытащить email? Ибо это не какой-то console.log с данными, это системный лог.

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