I created Android App that is made by cocos2d-x.
I'd like to implement cooperation function with social network service (facebook and twitter )
For example, Like! button which separate news feed.tweet function.
But This function turned out to be a can of worms which I couldn't finish.
I found EziSocial. but I can't find any hints.
would you give me a
description of how to use and method of attach to existing app
We have series of tutorials available on our website. http://ezibyte.com/tutorials/
Disclaimer: I am the creator of EziSocial Plugin
Related
I'm creating a flutter plugin that uses a 3rd party SDK
The SDK has an override method called onIdleTimeout(), when this method fires the SDK logs the users out, and pulls up a native login view.
I don't want this native login view to pop up, so when this onIdleTimeout() fires I want to send a message back to the Flutter dart code that is using my plugin to simply let it know that the onIdleTimeout() method has fired
I've looked at examples of using EventChannels but none of them show using event channels inside of an custom override method in native code
any help is much appreciated thank you, I'm starting with the Android/Kotlin side of the plugin so any kotlin examples would be great
Found out I can just use a BasicMessageChannel to send a message from native to dart
As we know, there have been changes in access to the twitter API referring to callbacks URLs.
So far, I have been using the identification callback with firebase, as I indicated here:
This has been working perfectly so far.
I read in the documentation that now you have to indicate the callback, according to android or iOS in the following way:
twitterkit- : // if using Twitter Kit for iOS or
twittersdk: // if using Twitter Kit for Android.
My application is only developed for android.
I have tried all the possible variants, but I always get the following error:
The client application failed validation: Not a valid callback URL format.
The tested options have been:
twittersdk://pfa89MGYola62VIln ........ (MY_CONSUMER_KEY)
twittersdk://MY_APP-android.firebaseapp.com/__/auth/handler
twittersdk://https://MY_APP-android.firebaseapp.com/__/auth/handler
I have activated and deactivated the check "enable callback locking" ...
I've tried everything, I'm a little desperate
For another test, I tried to register the URL callback as if it were the iOS platform
twitterkit-MY_CONSUMER_KEY://
and it was accepted on the first attempt.
I do not mind losing the relationship with firebase, the truth is that I was not using it, but I have a serious problem if I can not connect with twitter again.
I appreciate any help.
I found the solution, I put it here in case it can be of help to someone.
The truth is that it is not well specified in the documentation, you have to take two steps.
First: activate the "enable callback locking" checkbox
Second: indicate the android sdk for twitter, WITHOUT CONSUMER KEY, unlike iOS users.
It would be like this:
I hope it helps
I use UnityEngine.Social to login my user on googleplaygames or ios:
Social.localUser.Authenticate(ProcessAuthentication);
This work fine, but now I would like to make my user hable to disconnect. But the Social or ILocalUser the class do not contain any method to disconnect. I don't find how do it cleanly and keep the abstraction of google or ios system if possible.
Thank you - sorry for english error -
You can sign out from googleplaygames simply using this:
using GooglePlayGames;
using UnityEngine.SocialPlatforms;
PlayGamesPlatform.Instance.SignOut ();
#Zeldarck You can sign out from google play games as #Jindra Žák said but for iOS Game center it is not to log out as iOS not provide a way to do it.Refer for iOS game center here
I have a Worklight 6.2 app. I am modifying the android java code to subscribe to a notification sent via Bluemix. After the user logs in, I would like to register the device using the userid that gets created. Is there an API call that I can use within the android code that is the equivalent to WL.Client.getUserName, or should I be calling the java code from my javascript and passing the userName to the java code? Thanks for any suggestions.
JT
There is no Java equivalent to this. This is a Worklight API.
What you can do is use the new WL.App.sendActionToNative method in Worklight 6.2 for to send a value to your native code and from there do what you need with it.
WL.App.sendActionToNative(“doSomething”, { customData: 12345} );
Where customdData is the WL.Client.getUserName.
On the native side you then need to use WLActionReciever (see What's New).
You could also opt to implement a basic Cordova plug-in that will move data from the web to native view.
The tutorial in the Getting Started page is doing exactly that.
I used this link http://abhinavasblog.blogspot.com/2010/09/using-twitter-with-oauth-on-andorid.html to use Twitter in my application Android.
But nothing appears in interface. Should I create the interface of authentification twitter or it generated directement by code. Can any one explain me why I didn't have any displayed
Try this link also :
https://gist.github.com/97ed32efcada70516cc9
You will need:
signpost-commonshttp4.....java
signpost-core.....java
Search for these jar files on net...........
Hope it helps