VKCOM / vk-ios-sdk

iOS library for working with VK API, authorization through VK app, using VK functions
MIT License
298 stars 165 forks source link

[VKSdk authorize:scope] doesn't work #538

Open Joicker opened 6 years ago

Joicker commented 6 years ago

use the [VKSdk authorize:scope] is nothing happen ,where should i check it

0xstragner commented 6 years ago

do you set up delegates? VKSdk *sdkInstance = [VKSdk initializeWithAppId:YOUR_APP_ID]; [sdkInstance registerDelegate:delegate]; [sdkInstance setUiDelegate:uiDelegate];

Joicker commented 6 years ago

yep,but the [VKSdk wakeUpSession:SCOPE completeBlock:^(VKAuthorizationState state, NSError *error) is not running ,and i use this one [[VKSdk initializeWithAppId:APP_ID] registerDelegate:delegate];

0xstragner commented 6 years ago

Do you set UI delegate?

Joicker commented 6 years ago

yes i did

0xstragner commented 6 years ago

Please show you full code where you initialize SDK and call authorise method

Joicker commented 6 years ago

image image

0xstragner commented 6 years ago

Are you sure that int vklogin(lua_state *L) called after your method on first screenshoot?

Joicker commented 6 years ago

I'm sure ,the first screenshoot i was set in the -(BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions

Joicker commented 6 years ago

still here?