Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception throw when login in IOS #14

Open
isoos opened this issue Sep 17, 2018 · 2 comments
Open

Exception throw when login in IOS #14

isoos opened this issue Sep 17, 2018 · 2 comments

Comments

@isoos
Copy link

isoos commented Sep 17, 2018

From @lucyhoang on September 17, 2018 10:32

URL: https://pub.dartlang.org/packages/flutter_twitter_login#-versions-tab-

Hi, i am trying to use this packages.
But i get a trouble when login with ios.
I create an app on twitter, setting callbacks are : twitterkit-consumerKey:// (for ios) and twittersdk:// (for android)
Then i use your example to run. It's run well on android.
But i got exception on IOS when click to "Login"
Here is exception:

0 CoreFoundation 0x00000001121051e6 __exceptionPreprocess + 294
1 libobjc.A.dylib 0x00000001117a2031 objc_exception_throw + 48
2 CoreFoundation 0x000000011217a975 +[NSException raise:format:] + 197
3 TwitterKit 0x000000010f3eb922 -[TWTRTwitter logInWithViewController:completion:] + 655
4 flutter_twitter_login 0x000000010b7cec7e -[TwitterLoginPlugin authorize:] + 206
5 flutter_twitter_login 0x000000010b7ce7a6 -[TwitterLoginPlugin handleMethodCall:result:] + 326
6 Flutter 0x000000010cda7a42 __45-[FlutterMethodChannel setMethodCallHandler:]<…>

Could you check it for me. Thanks

Copied from original issue: dart-lang/pub-dev#1619

@tamhoang113
Copy link

Hi,
I have found my incorrect step.
I have not config CFBundleURLTypes in Info.plist
Now, it run well.
Sorry for my misunderstand :)

@jbcaveman
Copy link

There is additional configuration required in the Info.plist for iOS.
https://stackoverflow.com/questions/44651236/twitterkit-3-0-twtrinvalidinitializationexception-error-in-ios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants