react-native-linkedin-sdk icon indicating copy to clipboard operation
react-native-linkedin-sdk copied to clipboard

Find out if webview was used instead of Linkedin view.

Open BenBach opened this issue 8 years ago • 2 comments

Is there a way to find out that web view was used to login instead of the linkedin app.

I want to use the token server side. If the linkedin app was used I need to pass the additional header 'x-li-src' : 'msdk', but when the web view was used I can't use this header.

Is there a way to find out which of the two login possibilities were used?

BenBach avatar Jun 19 '17 09:06 BenBach

@BenBach I'm having the same issue. Have you been able to fix this?

sregg avatar Jul 31 '18 17:07 sregg

Oh actually I found out that the LinkedIn.signIn() returns an object containing a fromMobileSDK boolean!

sregg avatar Jul 31 '18 17:07 sregg