VK Social Network

I can now confirm that vk.login() does not work on iOS.

Whether the VK app is installed or not, calling either

local loginOptions = { inApp = false } vk.login(\_vkLoginListener, loginOptions)

or

local loginOptions = { inApp = true } vk.login(\_vkLoginListener, loginOptions)

Does nothing. There is no callback to the listener, and nothing happens. 

This has worked a while ago, only if the VK app was installed, but now nothing works…

Can someone please take a look at this issue? 

We want to be able to use this plugin, but logging in is crucial. 

Thanks

stanga, for sharing you need the ‘wall’ and maybe ‘photos’ permissions. Which are submitted to the init() call.

stanga, for iOS can you confirm you have all URL related stuff in build.settings?

A heads up. The plugin will become paid on Wednesday (Oct. 12).

Launch sale for $7.49 for a week and $9.99 after that. Subscription.
This plugin is 50% cheaper than my other paid plugins because financial crisis and stuff.

I updated the build.settings file according to the plugin docs, yet the login doesn’t work. This in not only on iOS 10, but also iOS 8 and 9. 

stanga, I am able to login using either VK app or Safari (or WebView). I am using latest iOS 9. Please try building the sample app (from github) with your settings.

The sample app with my build.settings file also does not work. 

It also doesn’t work if I take the build.settings file from the sample app and simply change the app number to my own, or use the app number originally there. 

In the console logs I see the line:

com.apple.xpc.launchd[1] (com.apple.WebKit.WebContent.318163E9-0CBF-4D65-BC01-DBD79FC9AC60[192]) \<Warning\>: Service exited with abnormal code: 1

So it looks like Safari is crashing for some reason. 

Any progress with this issue? 

We’re still unable to login on iOS, no matter which iOS version we use (8, 9, 10). 

Please help, we can’t use the plugin without logging in. 

stanga, I guess I need your project to look at. Source code plus VK settings on their website.

How can we do that?

Regarding the VK settings on their website - is there any explanation of what should be set there? 

There is a good chance our problem lies there, but I haven’t found any reference to it in your docs at:

http://spiralcodestudio.com/plugin-vk/

Follow the main docs https://vk.com/dev/ios_sdk

I’ve seen these docs, but they seem a bit outdated (the actual settings page looks different). 

Anyways, I’ve managed to narrow down the issues in iOS:

– if I don’t have the VK app installed, or if it is installed but there is no user logged in, the login hangs forever. The callback listener is never called, and the device logs indicate Safari has failed to open:

com.apple.xpc.launchd[1] (com.apple.WebKit.WebContent.318163E9-0CBF-4D65-BC01-DBD79FC9AC60[192]) \<Warning\>: Service exited with abnormal code: 1

– if I have the VK app installed, and I’m logged-in in there with a certain user, the login function returns the following response to the callback:

The operation couldn’t be completed. (ErrorEmptyListForMessageSendDomain error 1001.)

Either way, I can’t login with iOS. 

The plugin has been updated.

Breaking changes:

New stuff:

  • vk.login() now has userInitiated option, must set to true for a normal login. Don’t set for a silent login attempt if user has been authorized previously.

Sample app has been updated, be sure to check it out https://github.com/Lerg/plugins-sample-vk

API reference have been moved to the docs site http://docs.spiralcodestudio.com/plugin/vk/