I’m implementing Twitter oAuth on an app that has compatibility with iOS 8+ and uses CocoaPods to integrate Fabric artefacts.
ISSUE 1:
For iOS 8, Twitter seems not to provide a convenient application method to handle deep link, what should I do?
Current code:
@available(iOS 9.0, *)
func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -> Bool {
if Twitter.sharedInstance().application(app, openURL: url, options: options) {
return true
}
return false
}
@available(iOS, introduced=8.0, deprecated=9.0)
func application(application: UIApplication,openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool {
// WHAT TO DO HERE?
// if Twitter.sharedInstance().application(application, openURL: url, options: options) {
// return true
// }
return false
}
ISSUE 2:
Plus, for some reason on iOS 8, the web login is displayed but the user interaction is disabled, so basically the user is stuck there and the application needs to be closed.
ISSUE 3:
Following the Fabric steps to integrate Twitter using the Mac app, I got stuck in the final step which is “Verifying installation”. I ended up doing manually, (creating an app, changing info.plist manually, etc) and it works for iOS 9. I would like to use it through Fabric since I’m using Crashlytics through it too.