Comments (15)
Thanks for your work.
Your plugin should appear here. The official documentation suggests a plugin with deprecated components, and Apple doesn't accept it:
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).
from twitter_login.
@0maru amazing job, keep up the good work, this repo is handy!
from twitter_login.
@TheMedo
Added to README about intent filters.
Please let me know if there are any problems.
from twitter_login.
@dungnc
Please try the following settings.
<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="https" android:host="***page.link" android:pathPattern="/jdF1">
</intent-filter>
from twitter_login.
Hi efraespada,
This plugin does not use TwitterSDK.
You need to specify Callback URL
you've added to the Twitter Developer.
Try to replace twittersdk with the Callback URL.
For Example
<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="f-twitter-oauth" android:host="" />
</intent-filter>
from twitter_login.
Same result with f-twitter-oauth
. The login process is well but coming back to the app there is no change.
Could the main activity be loosing/stopping its thread execution when the login activity is opened?
D/FA (14177): Application going to the background
V/FA (14177): Inactivity, disconnecting from the service
I/flutter (14177): app in inactive
This line is never completed:
final AuthResult result = await twitterLogin.login();
from twitter_login.
Did you add f-twitter-oauth://
to your Twitter APP Callback URLs?
Could the main activity be loosing/stopping its thread execution when the login activity is opened?
I don't think that's the case, but I'll take a look later.
from twitter_login.
Did you add
f-twitter-oauth://
to your Twitter APP Callback URLs?
Yes, I did.
from twitter_login.
I tried to upgrade the Android source to the embedding v2 and everything works fine now.
Sorry for wasting your time.
from twitter_login.
I'm sorry.
I'll add an explanation of the embedding v2 to README.md
from twitter_login.
I think adding the intent filters is important step for Android, maybe it should be included in the readme?
from twitter_login.
@TheMedo
I think so too.
from twitter_login.
But app still freezes for me at
final result = await _twitterLogin.login();
Auth flow comes back the app after redirect but further code is not executed.
I have right config for
<meta-data android:name="flutterEmbedding" android:value="2"/>
from twitter_login.
I added this callback URL (deep link) in the login function. I used this code and it didn't print anything, I think this function didn't return any information through deep link.
final twitterLogin = TwitterLogin(
// Consumer API keys
apiKey: '...',
// Consumer API Secret keys
apiSecretKey: '...',
// Registered Callback URLs in TwitterApp
// Android is a deeplink
// iOS is a URLScheme
redirectURI: 'https://....page.link/jdF1',
);
final authResult = await twitterLogin.login(forceLogin: true);
print(authResult.user.email); // user email address
print(authResult.user.thumbnailImage); // user setting picture
print(authResult.user.name); // user name
print(authResult.user.screenName); // twitter account id
switch (authResult.status) {
case TwitterLoginStatus.loggedIn:
print("twitter success");
print(authResult.user.screenName);
// success
break;
case TwitterLoginStatus.cancelledByUser:
print("twitter cancelled");
// cancel
break;
case TwitterLoginStatus.error:
print("twitter error");
print(authResult.errorMessage);
// error
break;
}
This is in AndroidManifest
<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="https://....page.link/jdF1"/>
</intent-filter>
from twitter_login.
Great, I can get the information now. Thank you so much.
from twitter_login.
Related Issues (20)
- This api.twitter.com page can’t be found HOT 9
- HttpException: Failed Forbidden Flutter HOT 2
- After login twitter account from browser then get stuck to return to my app HOT 13
- Stuck on redirected URL after authentication & authorization with Twitter HOT 4
- Support other signins from Twitter HOT 1
- PlatformException(400, Failed to generate request token., Please check your APIKey or APISecret., null) HOT 6
- this plugin cannot use the Firebase default callback URL. HOT 15
- W/ActivityThread(16564): handleWindowVisibility: no activity for token android.os.BinderProxy@cd66bb HOT 3
- How to open Twitter login app instead of the website? HOT 1
- Is there a plan to make this package compatible with the new pricing plans of the Twitter API? HOT 5
- Unable to login for iOS or Android HOT 3
- Firebase Auth Handle is not working HOT 3
- vivo, Android,Could not open browser HOT 4
- Type 'VoidCallback' not found HOT 3
- Compatibility issue http migration HOT 1
- Webview opens the swcond time when closing the first one HOT 1
- Change the old Twitter logo HOT 2
- This page isn't working showed up when clicking sign out
- PlatformException(INVALID_AUTHORIZATION, can not open custom tabs., null, null) HOT 1
- No Access Token
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter_login.