marpies / vk-ane Goto Github PK
View Code? Open in Web Editor NEWVKontakte extension for Adobe AIR (iOS & Android)
License: Apache License 2.0
VKontakte extension for Adobe AIR (iOS & Android)
License: Apache License 2.0
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.
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?
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;
}
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:
But after 10-100 ms image dissapears:
in removeAccessTokenUpdateCallback
...
var index:int = mTokenUpdateCallbacks.indexOf( callback );
if( index < 0 ) {
mTokenUpdateCallbacks.removeAt( index );
}
...
should be index >= 0
Conditions:
Result:
Expected Result:
This issue is the main problem to solve before adding into VK catalog.
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 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
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
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)
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?
Configurations are correct, CFBundleURLSchemes and LSApplicationQueriesSchemes are setted.
Steps to reproduce:
I use myflashlab firebase
this library requires overrideAir ane (myflashlab)
the use of any override > 4.0.0 library does not allow this ane
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?
Hello, can you build for 64 bit support for Android?
Thanks
Добрый день, @dreddik Роман.
Совместно с Марселем мы написали VK ANE https://github.com/marpies/vk-ane Текущая сборка включает последние версии iOS/Android SDK. ANE доступна для всех AS3/AIR разработчиков.
Если возможно, просим разместить ANE на странице https://new.vk.com/dev/SDK Также если необходимо можем перенести репозиторий в ваш аккаунт.
Hi @marpies,
Native iOS SDK was updated by VK. Please keep it up-to-date.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.