Git Product home page Git Product logo

vk-ane's People

Contributors

liklainy avatar marpies avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

vk-ane's Issues

different request responses on iOS and Android

friends.get request on iOS returns object { "items": ... }, but on Android it returns wrapped object { "response": { "items": ... } }.
It might be better to unify responses on iOS and Android.

VK.share.setAttachmentImages doesn't work on Android

Hello.

I'm trying to share an image on Android device but I get this error:

[trace] [VK] Share error: Empty error message | Error code: -101
[trace] [VKDemo] VK::onShareFailed Empty error message | Error code: -101

My code:

var a:BitmapData = new BitmapData(50,50,false,0x000ACE);

VK.share
              .setAttachmentImages(new <BitmapData>[a])
	          .setText( "Hello, sharing this fine link with you." )
	          .setAttachmentLink( "VK.com", "http://vk.com" )
	          .setCompleteCallback( onShareCompleted )
	          .setCancelCallback( onShareCancelled )
	          .setErrorCallback( onShareFailed )
	          .showDialog();

If I remove setAttachmentImages it works, but I want share an image.
How to fix this issue?

Facebook SDK conflicts with VK SDK [IOS]

When trying to authorize via native application, it pull user back to the game and then navigates to the safari. The reason is described there: https://vk.com/dev/ios_sdk

Обратите внимание: если Вы уже используете Facebook SDK, и один из этих методов возвращает [FBSDKDelegate ...], Вы можете решить эту проблему следующим образом:
-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {

[[FBSDKApplicationDelegate sharedInstance] application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
[VKSdk processOpenURL:url fromApplication:sourceApplication];
return YES;
}

VK.share.setAttachmentImages doesn't attach image on iOS device

Hello.

I'm trying to share an image on iOS device but when share dialog appears my image dissapears. See video here.

My code:

var a:BitmapData = new BitmapData(50,50,false,
         VK.share..setAttachmentImages(new <BitmapData>[a])
             .setText( "Hello, sharing this fine link with you." )
             .setAttachmentLink( "VK.com", "http://vk.com" )
             .setCompleteCallback( onShareCompleted )
             .setCancelCallback( onShareCancelled )
             .setErrorCallback( onShareFailed )
             .showDialog();

Is it ANE issue?

I see an image for 10-100 ms after share dialog opens:
screenshot_1
But after 10-100 ms image dissapears:
screenshot_2

removeAccessTokenUpdateCallback

in removeAccessTokenUpdateCallback

...
  var index:int = mTokenUpdateCallbacks.indexOf( callback );
  if( index < 0 ) {
    mTokenUpdateCallbacks.removeAt( index );
  }
...

should be index >= 0

No callback when webview authorize dialog is cancelled

Conditions:

  • Android
  • No native VK app installed
  • Trying to log in VK
  • Cancel WebView dialog

Result:

  • Application don't know if dialog cancelled, so if we have loader, we can't know that it is not needed anymore.

Expected Result:

  • Application is notified about dialog cancel.

This issue is the main problem to solve before adding into VK catalog.

Login doesn't work in ios 11

We use the latest version 1.2.0, which ignores InvokeEvent.INVOKE and uses application::openURL.

Unfortunately in ios 11, the authorization process is stuck in the password entry dialog.

Application log:
[-] ===app invoke 'vk5622047://authorize#access_token=**************&expires_in=0&user_id=**************,com.apple.SafariViewService,' [-] === [-] VK::onAccessTokenUpdated | not logged in [-] VK::onAuthResult | error: Something went wrong [-] VK::onAuthResult | accessToken: null [-] VK::onAuthResult | isLoggedIn: false

Black screen after login into vk on Nexus5

Black screen appears when little time has passed between the login window appearing and pressing the confirm button. Black screen doesn't appears if passed more then 2 seconds. Reproduced on Nexus5 android 6.0.1, didn't reproduced on Samsung Galaxy S3 android 4.3

Invite Error -101

On Android I call invite request:
VK.request .setMethod("apps.sendRequest") .setParameters({"user_id": userId,"text": text,"key": "invite","type": "invite"}) .send();

But VK answers:
VKRequest::onError: null reason: null code: -101

Can I get any more helpful error message?

java.lang.NullPointerException in com.vk.sdk.VKAccessToken.hasScope

java.lang.NullPointerException
    at com.vk.sdk.VKAccessToken.hasScope(VKAccessToken.java:313)
    at com.marpies.ane.vk.utils.VKAccessTokenUtils.toJSON(VKAccessTokenUtils.java:45)
    at com.marpies.ane.vk.utils.AIR.dispatchTokenChange(AIR.java:89)
    at com.marpies.ane.vk.utils.AIR.access$000(AIR.java:29)
    at com.marpies.ane.vk.utils.AIR$1.onVKAccessTokenChanged(AIR.java:73)
    at com.vk.sdk.VKSdk$1.run(VKSdk.java:130)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:146)
    at android.app.ActivityThread.main(ActivityThread.java:5641)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1288)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1104)
    at dalvik.system.NativeStart.main(Native Method)

Sdk is undefined

Environment:
IOS 7.2.1 / 9.3.5 / 10.2.1
ANE 1.1.0

It happens when calling authorization with native application installed:
http://joxi.ru/bmonjMzUzov9ry

Of course, I call init() first. Is it problem with bundle ID?

iOS, OAuth flow, browser view openes after native app

Configurations are correct, CFBundleURLSchemes and LSApplicationQueriesSchemes are setted.

Steps to reproduce:

  1. open app
  2. start auth flow -> native app opened
  3. press "home button"
  4. open app again -> app starts then browser view opens

[VK] Share error: Empty error message | Error code: -101

Hello, guys.

Trying to use VK.share functionality like described in demo app.
VK.share
.setText( "Hello, sharing this fine link with you." )
.setAttachmentLink( "VK.com", "http://vk.com" )
.setCompleteCallback( onShareCompleted )
.setCancelCallback( onShareCancelled )
.setErrorCallback( onShareFailed )
.showDialog();

After that opens share dialog with provided text and link, but after pressing "Send" button I always get this error "[VK] Share error: Empty error message | Error code: -101".

What can I to debug/fix this?

64 bit support

Hello, can you build for 64 bit support for Android?
Thanks

VK SDK Request

​Добрый день, @dreddik Роман.

Совместно с Марселем мы написали VK ANE https://github.com/marpies/vk-ane Текущая сборка включает последние версии iOS/Android SDK. ANE доступна для всех AS3/AIR разработчиков.

Если возможно, просим разместить ANE на странице https://new.vk.com/dev/SDK Также если необходимо можем перенести репозиторий в ваш аккаунт.

VK.authorize doesn't work

When I try to call
VK.authorize(new <String>[VKPermissions.WALL, VKPermissions.OFFLINE], onVKLogin);
VK app opens and show error:
img_0273

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.