Giter VIP home page Giter VIP logo

vkontakte-ios-sdk's People

Contributors

ayastrebov avatar gneil90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vkontakte-ios-sdk's Issues

Пожалуйста, не копируйте данные из адресной строки для сторонних сайтов

Добрый день,

После третьего входа виден только экран авторизации с текстом:
"Пожалуйста, не копируйте данные из адресной строки для сторонних сайтов. Таким образом Вы можете потерять доступ к Вашему аккаунту."

P.S. Кнопка Отмена в этом контроллере не действует.

logout is broken

After logout you can try to login again. And in this case you can just tap "Log In" button with any values in fields (even empty). You will be loged in previous account, which you wish to log out

Crash + Cancel handling

SDK 6.0
For now we have crash on cancel button from nav bar or cancel in web view EXC_BAC_ACCESS to delegate from Vkontakte.m, if I make it strong - crash dissapear, but i'm not sure it's memory safe
Also when we click Cancel on login VK we will see some json about error authorization or something like that, to avoid it You can add

if ([[URL absoluteString] isEqualToString:@"http://api.vk.com/blank.html#error=access_denied&error_reason=user_denied&error_description=User%20denied%20your%20request"] || !NSEqualRanges([[URL absoluteString] rangeOfString:@"cancel=1"], NSMakeRange(NSNotFound, 0)))

in checking of cancel button clicked, i think vk api changed and now http://api.vk.com/blank.html#error=access_denied&error_reason=user_denied&error_description=User%20denied%20your%20request handling isn't even needed

init issue

  • (id)init
    {
    if ([defaults objectForKey:@"VKAccessTokenKey"]
    && [defaults objectForKey:@"VKExpirationDateKey"]
    && [defaults objectForKey:@"VKUserID"])
    && [defaults objectForKey:@"VKUserEmail"])

new accounts not require email - this optional parameter

Idea

Hi

Will be better to make it like singleton and add one method with block.
For example:

[[VKAPIClient center] makeRequestWithMethod:@"audio.getById" // api function 
                                            parameters:[NSMutableDictionary dictionaryWithObjectsAndKeys:
                                                    @"5340847_43763767", @"aid", @"1495645_973", @"oid", nil]
                                            uids:nil
                                             result:^(NSDictionary *json){
// manipulations with JSON results
}];

Thanks a mill

This sdk doesn't work if user blocked.

Requere logout in cancel authorizationDidCanceled delegate method.
Reproduce:

  1. User with old account (use email instead of mobile number ).
  2. Captcha show.
  3. SHow screen were you should enter mobile number.
  4. Tap cancel button.
  5. SDK decide that you logined but you in blocked state.

'NSInvalidArgumentException' in getUserInfo

"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil'". Check responce for nil before use [NSJSONSerialization JSONObjectWithData:response options:kNilOptions error:&error]; add
if (!responce) return; before it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.