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

Setting for TwitterKit 3 #8

Open
donuzium opened this issue Oct 11, 2017 · 2 comments
Open

Setting for TwitterKit 3 #8

donuzium opened this issue Oct 11, 2017 · 2 comments

Comments

@donuzium
Copy link

donuzium commented Oct 11, 2017

First of all, I appreciate to your hard work @chroa .

I'm just testing with your new branch for Twitter Kit3
It's working now in my environment with some edit as follows:

AppDelegate.m

#import "AppDelegate.h"
#import "MainViewController.h"
// added
#import <TwitterKit/TwitterKit.h>

@implementation AppDelegate
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
    self.viewController = [[MainViewController alloc] init];
    // added
    [[Twitter sharedInstance] startWithConsumerKey:@"xxxxxxxxxxxxxx" consumerSecret:@"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"];
    return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

// added
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options {
    return [[Twitter sharedInstance] application:app openURL:url options:options];
}

@end

and see my PR
#7

Environment
iOS 11.0.1
Xcode 9.0
Cordova 7.0.1

Thanks!

@oosswwaalldd
Copy link

Hi, I am very interested in this update so I can use Twitter in my current iOS 11 project (with Twitter integration stopped due to Twitter-connect-plugin problem). What should I do to apply the corrections made by you?

Thanks in advance!

@chroa
Copy link
Owner

chroa commented Feb 20, 2018

Thanks for all your help @donuzium! :) Will update according to that.

chroa pushed a commit that referenced this issue Feb 24, 2018
…app after logging in using the webview.

Reverted changes in TwitterConnect.m.
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