I'm using the iOS LinkedIn SDK to log into my App and retrieve basic profiles.
All works perfectly fine the first time I login, until either I log out, or I close my App.

On attempting to log back into my App with LinkedIn: the usual redirect to the LinkedIn app takes place, but the permissions screen for my app doesn't pop up, it just redirects straight back to my app with the following error:

Error Domain=LISDKAuthError Code=5 "(null)" UserInfo={errorDescription=The operation couldn’t be completed. Software caused connection abort, originalDomain=LISDKServerError, errorInfo=PARSING\_ERROR}

I can only successfully log back in again if I first close the LinkedIn App, before reopening mine.

Does anyone have an idea of what's going on please? 

-This doesn't occur on all of my test devices!

-On the device that it does occur on, I also receive the same error in that scenario when running the sample App provided with the LinkedIn SDK.

-The LinkedIn App is up to date.

-The App id, bundle ids etc etc are all set, hence login success half of the time!

-I've tried calling [LISDKSessionManager clearSession] in numerous locations.