Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fabric.io implementation (AppDelegate)

I'm trying to implement Fabric into my app. The problem is, that the app isn't working correctly and I have no idea what code to place in my AppDelegate. I can't find any information on the web what should I implement there. Can anyone give me a tip, what functions should I implement in my AppDelegate?

Fabric screenshot

like image 620
Nat Avatar asked Feb 25 '15 10:02

Nat


1 Answers

Assuming you used the build script to setup Fabric, it will have placed the appropriate consumerKey and consumerSecret in your project's info.plist.

You can initialize Fabric with this method:

Swift

Fabric.with(Twitter(), Crashlytics()) // Add whichever Kits you are using

ObjectiveC

[Fabric with:@[[Twitter sharedInstance]]] // Add whichever Kits you are using

Double check that your plist contains an entry for Fabric and add this line of code to your application:didFinishingLaunchWithOptions: method.

https://dev.twitter.com/twitter-kit/ios/configure

like image 178
DBoyer Avatar answered Oct 21 '22 14:10

DBoyer