You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library is linked and everything works fine until I try to log in: (on my button)
LinkedInSDK.signIn({
// https://developer.linkedin.com/docs/oauth2
// iOS (Required)
// The "API Key" value generated when you registered your application.
clientID: '<clientId>',
// iOS (Required)
clientSecret: '<secret>',
// iOS (Required)
// A unique string value of your choice that is hard to guess. Used to prevent CSRF.
state: '<state_value>',
// iOS, Android (Required)
scopes: [
'r_basicprofile',
'r_emailaddress',
'w_share'
],
// iOS (Required)
// The URI your users will be sent back to after authorization. This value must match one of the defined OAuth 2.0 Redirect URLs in your application configuration.
// e.g. https://www.example.com/auth/linkedin
redirectUri: 'your_oauth2_redirect_url',
}).then(result => console.info(result)).catch(error => console.error(error));
For some reason, when I accept permissions on LinkedIn app, it returns to mine but there is no token nor errors. I've also tried to add traces inside the library but seems that the login method does not exit via success nor error...
Any ideas?
Thanks!
The text was updated successfully, but these errors were encountered:
Exact same thing happening here, tried debugging the Java code but with no luck so far.. It seems that neither onAuthSuccess nor onAuthError get executed..
I managed to solve it eventually. The problem is the "PACKAGE NAME & PACKAGE HASH" in your Linkedin dev app! They are crucial! I spent many many hours until I finally got it working, here's how:
Open your android project in Android Studio.
Select 'Build -> Generate signed APK...' (I think it needs to be release build, but not sure)
After finishing, copy your generated APK in your JAVA JDK BIN FOLDER (C:/Program Files/Java/jdkx.x/bin)
Open COMMAND LINE there. Run 'keytool -list -printcert -jarfile your-apk-name.apk'
Hi! First of all, thanks for this library!
I'm working in a new react native app with this configuration:
The library is linked and everything works fine until I try to log in: (on my button)
For some reason, when I accept permissions on LinkedIn app, it returns to mine but there is no token nor errors. I've also tried to add traces inside the library but seems that the login method does not exit via success nor error...
Any ideas?
Thanks!
The text was updated successfully, but these errors were encountered: