Closed stef0296 closed 3 years ago
Hi, I will share my snippets which I am using and works on android.
Try to change twittersdk with twitter
In android manifest file:
<!-- Twitter URI scheme -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="twitter"/> <!-- host is option -->
</intent-filter>
The instance of TwitterLogin as:
final twitterLogin = TwitterLogin(
apiKey: AppConfig.twitterApiKey,
apiSecretKey: AppConfig.twitterApiSecret,
redirectURI: 'twitter://');
And in Twitter developer console using this as callback url twitter://
P.S. Also try to change app permission Read, Write, and Direct Message in Twitter dashboard.
Hi, I will share my snippets which I am using and works on android.
Try to change twittersdk with twitter
In android manifest file:
<!-- Twitter URI scheme --> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="twitter"/> <!-- host is option --> </intent-filter>
The instance of TwitterLogin as:
final twitterLogin = TwitterLogin( apiKey: AppConfig.twitterApiKey, apiSecretKey: AppConfig.twitterApiSecret, redirectURI: 'twitter://');
And in Twitter developer console using this as callback url twitter://
P.S. Also try to change app permission Read, Write, and Direct Message in Twitter dashboard.
This worked
Good to hear that... šš
I'm implementing this plugin in my app and it works perfectly for iOS. On Android however, it does not work for some reason. After successful login, I am stuck on the redirect screen and it does not return back to my app.
Screenshot: drive
Any idea on what's going wrong?
AndroidManifest.xml
Dart code