Hi @bonnell and @_skciva,
For some reason my earlier reply got tagged as spam. I hope this one makes it through… I use the following code snippet to login to Twitter:
[[Twitter sharedInstance] logInWithCompletion:^(TWTRSession * _Nullable session, NSError * _Nullable error) {
if ( session )
{
if ( self.completionBlock )
{
self.completionBlock();
}
}
else
{
NSLog(@"%@",error);
}
}];
This works when user credentials exist in Apple’s system accounts but when they do not, it does not fall back to OAuth.
I tried to reproduce the issue with a simple test app that just performs a login to Twitter using the same code snippet. It actually works as expected when credentials already exist and invokes the OAuth flow when they do not.
The main difference between the test app and my production app is that for the test app, I used the Fabric desktop app to generate the app keys and install TwitterKit. For my production app, I had created the app keys on the fabric.io website and use cocoapods to download and install TwitterKit.
I wonder if there’s some difference in configuration between the two integration methods that could be causing the issue?
Carl