chroa/twitter-connect-plugin

Setting for TwitterKit 3

Opened this issue · 2 comments

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!

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 commented

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