Open kentcb opened 6 years ago
I get exactly the same behavior if I use the Flutter_Social_login by @YahiaAgwa here.
Exactly same error here, the problem is in final TwitterLoginResult result = await twitterLogin.authorize();
Any help will be appreciated
I got the same error of you @Pitazzo. When you try to print the message error shows "Failed to get request token" :/. Did you solve it?
Hi,
I solved this by following below:
It is important to configure the callback URLs so that everything works correctly in your application.
You will have to use the following callback URLs:
Android - twittersdk://
iOS - twitterkit-CONSUMERKEY://
FOR MORE INFORMATION READ: https://developer.twitter.com/en/docs/basics/developer-portal/guides/callback-urls.html
@x8Haider can you guide me exactly were to add "twittersdk://". I'm using firebase authentication with Twitter.
Hi,
Thanks for writing this plugin.
I cloned the example and ran it on Android (Pixel) with the Twitter app installed. I get the same behavior I'm getting in my actual app:
authorize
never completesOutput of
flutter doctor -v
:Debugging the Java side, I can see that the activity is being recreated, so when
onActivityResult
is called,authClientInstance
isnull
and the result is never forwarded to it.I tried changing
initializeAuthClient
to this:I updated the call sites but also changed
onActivityResult
to call it with my hard-coded key and secret (didn't know how to get them otherwise). This behaved in exactly the same way except that there is no longer an "Authorize already in progress" error when I try the second time.🤔 Any ideas?